Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 106.8 kB / 17.15 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.154/1.154, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001005/0.001005, allocations: 51.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06508/0.0661, allocations: 46.62 MB / 326.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01037/0.0765, allocations: 13.9 MB / 340.6 MB, free: 6.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01707/0.09358, allocations: 19.88 MB / 360.5 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.09466, allocations: 31.81 kB / 360.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.09679, allocations: 1.059 MB / 361.6 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004/0.1008, allocations: 1.887 MB / 363.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.1032, allocations: 1.152 MB / 364.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006881/0.1101, allocations: 6.211 MB / 370.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004839/0.1106, allocations: 445.5 kB / 371.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007566/0.1114, allocations: 0.9405 MB / 372.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007474/0.1121, allocations: 1.067 MB / 373.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001541/0.1123, allocations: 52 kB / 373.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002328/0.1146, allocations: 1.132 MB / 374.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.1149, allocations: 309.6 kB / 374.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009008/0.1158, allocations: 1.358 MB / 376.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1245/0.2403, allocations: 3.684 MB / 379.8 MB, free: 23.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2403, allocations: 3.797 kB / 379.8 MB, free: 23.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2403, allocations: 1.688 kB / 379.8 MB, free: 23.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000104/0.2404, allocations: 3.125 kB / 379.8 MB, free: 23.67 MB / 318.1 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.004291/0.2447, allocations: 3.699 MB / 383.5 MB, free: 21.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2448, allocations: 9 kB / 383.5 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.2449, allocations: 97.81 kB / 383.6 MB, free: 21.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003368/0.2452, allocations: 400.8 kB / 384 MB, free: 21.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.248, allocations: 2.457 MB / 386.4 MB, free: 20.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.2481, allocations: 34.19 kB / 386.5 MB, free: 20.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.2482, allocations: 52.83 kB / 386.5 MB, free: 20.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.2494, allocations: 0.7299 MB / 387.3 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.2494, allocations: 0.8438 kB / 387.3 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.405e-05/0.2495, allocations: 19.3 kB / 387.3 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.2495, allocations: 24.78 kB / 387.3 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.2509, allocations: 0.8223 MB / 388.1 MB, free: 20.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004105/0.255, allocations: 3.067 MB / 391.2 MB, free: 20 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009771/0.256, allocations: 0.5815 MB / 391.8 MB, free: 19.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008065/0.2568, allocations: 0.6501 MB / 392.4 MB, free: 19.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02081/0.2777, allocations: 30.18 MB / 422.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006724/0.2784, allocations: 361.6 kB / 423 MB, free: 10.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.2784, allocations: 0 / 423 MB, free: 10.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.001913/0.2803, allocations: 1.107 MB / 424.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.2804, allocations: 55.41 kB / 424.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/0.2832, allocations: 2.954 MB / 427.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-05/0.2833, allocations: 41.69 kB / 427.1 MB, free: 6.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.2843, allocations: 1.485 MB / 428.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.2844, allocations: 175.4 kB / 428.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.2847, allocations: 226.1 kB / 429 MB, free: 4.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.071e-05/0.2848, allocations: 337.9 kB / 429.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005063/0.2853, allocations: 241.9 kB / 429.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006756/0.286, allocations: 0.6079 MB / 430.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.2871, allocations: 0.8852 MB / 431 MB, free: 2.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.2872, allocations: 4 kB / 431 MB, free: 2.363 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001716/0.2889, allocations: 1.237 MB / 432.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.2889, allocations: 8.969 kB / 432.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.349e-05/0.289, allocations: 87.92 kB / 432.4 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.289, allocations: 24 kB / 432.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006305/0.2897, allocations: 204.4 kB / 432.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/0.2897, allocations: 22.09 kB / 432.6 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000913/0.2906, allocations: 111.7 kB / 432.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.754e-05/0.2907, allocations: 64 kB / 432.8 MB, free: 0.7031 MB / 334.1 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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005464/0.2913, allocations: 438.6 kB / 433.2 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/0.2916, allocations: 383.5 kB / 433.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/0.2941, allocations: 1.198 MB / 434.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2941, allocations: 4 kB / 434.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2941, allocations: 4 kB / 434.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.2941, allocations: 7.922 kB / 434.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002704/0.2968, allocations: 2.105 MB / 436.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.991e-05/0.2969, allocations: 71.98 kB / 437 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004249/0.2973, allocations: 100.2 kB / 437.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.2974, allocations: 0 / 437.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-05/0.2974, allocations: 28 kB / 437.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2974, allocations: 7.984 kB / 437.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2974, allocations: 0 / 437.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001957/0.2994, allocations: 1.3 MB / 438.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005693/0.3, allocations: 480.3 kB / 438.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002869/0.3003, allocations: 13.64 kB / 438.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/0.3009, allocations: 23.97 kB / 438.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.301, allocations: 63.94 kB / 439 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.046e-05/0.3011, allocations: 39.98 kB / 439 MB, free: 10.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001949/0.3031, allocations: 1.916 MB / 440.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3031, allocations: 0 / 440.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001099/0.3042, allocations: 0.5855 MB / 441.5 MB, free: 7.895 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003049/0.3072, allocations: 2.559 MB / 444.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.3085, allocations: 0.8043 MB / 444.9 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3086, allocations: 1.75 kB / 444.9 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006665/0.3092, allocations: 453.1 kB / 445.3 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/0.3108, allocations: 491.9 kB / 445.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03358/0.3444, allocations: 21.88 MB / 467.7 MB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.3454, allocations: 1.665 MB / 469.4 MB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.3465, allocations: 361.7 kB / 469.7 MB, free: 9.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009979/0.3475, allocations: 1.218 MB / 470.9 MB, free: 8.602 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3475, allocations: 0 / 470.9 MB, free: 8.602 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.634/4.981, allocations: 59.05 MB / 0.5176 GB, free: 13.54 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/4.981, allocations: 214.7 kB / 0.5178 GB, free: 13.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.205/10.19, allocations: 4 kB / 0.5178 GB, free: 13.27 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches