Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001143/0.001144, allocations: 175.5 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008112/0.0008111, allocations: 89.41 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003271/0.0003273, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2023, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008428/0.2107, allocations: 12.4 MB / 387.6 MB, free: 35.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01686/0.2276, allocations: 17.94 MB / 405.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002813/0.2305, allocations: 27.81 kB / 405.6 MB, free: 18.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003013/0.2335, allocations: 0.9369 MB / 406.5 MB, free: 17.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007603/0.2411, allocations: 1.809 MB / 408.3 MB, free: 15.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00501/0.2462, allocations: 1.069 MB / 409.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008629/0.2548, allocations: 5.919 MB / 415.3 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.2559, allocations: 421.6 kB / 415.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.2572, allocations: 0.8512 MB / 416.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.2585, allocations: 0.9901 MB / 417.5 MB, free: 6.168 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000359/0.2589, allocations: 40 kB / 417.6 MB, free: 6.129 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004179/0.2631, allocations: 1.077 MB / 418.7 MB, free: 5.051 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003708/0.2635, allocations: 277.9 kB / 418.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.2651, allocations: 1.291 MB / 420.2 MB, free: 3.473 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002408/0.2675, allocations: 2.71 MB / 422.9 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.2676, allocations: 4 kB / 422.9 MB, free: 0.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2676, allocations: 0 / 422.9 MB, free: 0.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001574/0.2677, allocations: 0 / 422.9 MB, free: 0.75 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005217/0.273, allocations: 3.241 MB / 426.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.273, allocations: 12.03 kB / 426.2 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002251/0.2733, allocations: 102.4 kB / 426.3 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005782/0.2738, allocations: 399.1 kB / 426.7 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003847/0.2777, allocations: 2.457 MB / 429.1 MB, free: 10.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.395e-05/0.2777, allocations: 37 kB / 429.2 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.2779, allocations: 55.91 kB / 429.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.2792, allocations: 0.7538 MB / 430 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.2793, allocations: 0 / 430 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.634e-05/0.2793, allocations: 20 kB / 430 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.315e-05/0.2794, allocations: 23.98 kB / 430 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/0.2809, allocations: 0.8592 MB / 430.9 MB, free: 8.633 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005277/0.2862, allocations: 3.09 MB / 434 MB, free: 5.461 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.2874, allocations: 0.6142 MB / 434.6 MB, free: 4.836 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009912/0.2884, allocations: 0.6673 MB / 435.3 MB, free: 4.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02698/0.3154, allocations: 30.23 MB / 465.5 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007478/0.3162, allocations: 381.7 kB / 465.9 MB, free: 1.445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.865e-06/0.3162, allocations: 4 kB / 465.9 MB, free: 1.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002249/0.3185, allocations: 1.147 MB / 467 MB, free: 288 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.3185, allocations: 71.33 kB / 467.1 MB, free: 204 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003285/0.3218, allocations: 2.909 MB / 470 MB, free: 13.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.795e-05/0.3219, allocations: 33.7 kB / 470 MB, free: 13.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.3231, allocations: 1.497 MB / 471.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.3232, allocations: 169.7 kB / 471.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.3233, allocations: 20 kB / 471.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3234, allocations: 341.9 kB / 472 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000572/0.324, allocations: 261.8 kB / 472.3 MB, free: 10.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007852/0.3248, allocations: 0.6177 MB / 472.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.3262, allocations: 0.9403 MB / 473.9 MB, free: 9.047 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.3262, allocations: 4 kB / 473.9 MB, free: 9.043 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002037/0.3283, allocations: 1.268 MB / 475.1 MB, free: 7.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3283, allocations: 8 kB / 475.1 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.978e-05/0.3284, allocations: 84.91 kB / 475.2 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.3284, allocations: 16 kB / 475.2 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000745/0.3292, allocations: 215.6 kB / 475.4 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.778e-05/0.3292, allocations: 27.92 kB / 475.5 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009005/0.3301, allocations: 115.1 kB / 475.6 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.967e-05/0.3302, allocations: 64 kB / 475.6 MB, free: 7.246 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006986/0.3309, allocations: 444.7 kB / 476.1 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003317/0.3313, allocations: 383.3 kB / 476.5 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002874/0.3342, allocations: 1.245 MB / 477.7 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.3342, allocations: 4 kB / 477.7 MB, free: 5.168 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3342, allocations: 3.984 kB / 477.7 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3342, allocations: 3.984 kB / 477.7 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.3373, allocations: 2.14 MB / 479.8 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.277e-05/0.3374, allocations: 68 kB / 479.9 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.3379, allocations: 103.9 kB / 480 MB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3379, allocations: 4 kB / 480 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/0.338, allocations: 35.98 kB / 480.1 MB, free: 2.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.338, allocations: 4 kB / 480.1 MB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.338, allocations: 0 / 480.1 MB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.3402, allocations: 1.367 MB / 481.4 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006981/0.3409, allocations: 480.1 kB / 481.9 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002464/0.3412, allocations: 8 kB / 481.9 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006538/0.3418, allocations: 43.95 kB / 481.9 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.342, allocations: 67.88 kB / 482 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.069e-05/0.3421, allocations: 40 kB / 482 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002258/0.3444, allocations: 1.888 MB / 483.9 MB, free: 14.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3444, allocations: 0 / 483.9 MB, free: 14.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00122/0.3456, allocations: 0.5816 MB / 484.5 MB, free: 14.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003424/0.349, allocations: 2.595 MB / 487.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.3506, allocations: 0.8452 MB / 488 MB, free: 10.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3506, allocations: 4.062 kB / 488 MB, free: 10.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.3513, allocations: 467.1 kB / 488.4 MB, free: 10.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.3533, allocations: 498.3 kB / 488.9 MB, free: 9.746 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03586/0.3892, allocations: 18.48 MB / 0.4955 GB, free: 5.297 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.3906, allocations: 1.661 MB / 0.4971 GB, free: 3.609 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.3919, allocations: 1.226 MB / 0.4983 GB, free: 2.383 MB / 394.7 MB Notification: Performance of SimCode: time 7.91e-07/0.3919, allocations: 0 / 0.4983 GB, free: 2.383 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.255/5.647, allocations: 45.14 MB / 0.5424 GB, free: 92.79 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches