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.0007453/0.0007455, allocations: 93.72 kB / 17.3 MB, free: 6.391 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.0007991/0.0007991, allocations: 171.6 kB / 18.2 MB, free: 5.551 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.305/1.305, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0004332/0.0004332, allocations: 16.42 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.08263, allocations: 47.58 MB / 329.1 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01119/0.09384, allocations: 13.35 MB / 342.4 MB, free: 6.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.1147, allocations: 19.6 MB / 362 MB, free: 2.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.1162, allocations: 31.81 kB / 362 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002687/0.1189, allocations: 1.08 MB / 363.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005716/0.1246, allocations: 1.883 MB / 365 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003683/0.1283, allocations: 1.156 MB / 366.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008335/0.1366, allocations: 6.207 MB / 372.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006531/0.1373, allocations: 433.5 kB / 372.8 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001297/0.1386, allocations: 0.9365 MB / 373.7 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009921/0.1396, allocations: 1.044 MB / 374.8 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.1398, allocations: 47.94 kB / 374.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003264/0.143, allocations: 1.128 MB / 375.9 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.1433, allocations: 293.6 kB / 376.2 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001184/0.1445, allocations: 1.376 MB / 377.6 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1663/0.3108, allocations: 3.621 MB / 381.2 MB, free: 23.37 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3108, allocations: 4.156 kB / 381.2 MB, free: 23.37 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.751e-06/0.3108, allocations: 0 / 381.2 MB, free: 23.37 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.00017/0.311, allocations: 3.5 kB / 381.2 MB, free: 23.37 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.005755/0.3168, allocations: 3.23 MB / 384.5 MB, free: 21.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.3168, allocations: 8.844 kB / 384.5 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001547/0.317, allocations: 101 kB / 384.6 MB, free: 21.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000383/0.3174, allocations: 400 kB / 385 MB, free: 21.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003832/0.3212, allocations: 2.454 MB / 387.4 MB, free: 20.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.3213, allocations: 39.67 kB / 387.5 MB, free: 20.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.3214, allocations: 61.78 kB / 387.5 MB, free: 20.42 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.3229, allocations: 0.7534 MB / 388.3 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.323, allocations: 0.8125 kB / 388.3 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-05/0.323, allocations: 23.88 kB / 388.3 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.3231, allocations: 22.03 kB / 388.3 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.3247, allocations: 0.8608 MB / 389.2 MB, free: 20.37 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.33, allocations: 3.088 MB / 392.3 MB, free: 19.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.3312, allocations: 0.6237 MB / 392.9 MB, free: 19.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009565/0.3322, allocations: 0.6686 MB / 393.6 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02411/0.3563, allocations: 30.22 MB / 423.8 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007629/0.3571, allocations: 381.7 kB / 424.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.395e-06/0.3571, allocations: 0 / 424.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002414/0.3596, allocations: 1.164 MB / 425.3 MB, free: 9.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.3596, allocations: 63.41 kB / 425.4 MB, free: 9.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003444/0.3631, allocations: 2.952 MB / 428.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.046e-05/0.3631, allocations: 37.69 kB / 428.4 MB, free: 6.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00118/0.3643, allocations: 1.491 MB / 429.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.3645, allocations: 175 kB / 430 MB, free: 4.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.3646, allocations: 65.69 kB / 430.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3647, allocations: 341.9 kB / 430.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005992/0.3653, allocations: 261.9 kB / 430.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008063/0.3662, allocations: 0.6227 MB / 431.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.3676, allocations: 0.9355 MB / 432.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.3676, allocations: 4 kB / 432.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002378/0.37, allocations: 1.274 MB / 433.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.37, allocations: 15.98 kB / 433.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.3701, allocations: 83.94 kB / 433.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/0.3702, allocations: 20.78 kB / 433.6 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007266/0.3709, allocations: 215.8 kB / 433.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.528e-05/0.3709, allocations: 27.39 kB / 433.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.3722, allocations: 117.5 kB / 434 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.3723, allocations: 68 kB / 434 MB, free: 480 kB / 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.0007609/0.3731, allocations: 432 kB / 434.5 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.3735, allocations: 383.5 kB / 434.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00291/0.3764, allocations: 1.249 MB / 436.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.3764, allocations: 8 kB / 436.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3764, allocations: 0 / 436.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3764, allocations: 0 / 436.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00329/0.3797, allocations: 2.146 MB / 438.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-05/0.3798, allocations: 68 kB / 438.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004835/0.3803, allocations: 103.5 kB / 438.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.3803, allocations: 0 / 438.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.3804, allocations: 35.98 kB / 438.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.3804, allocations: 5.688 kB / 438.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3804, allocations: 0 / 438.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.3827, allocations: 1.371 MB / 439.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007422/0.3835, allocations: 484.2 kB / 440.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00028/0.3838, allocations: 8 kB / 440.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006681/0.3844, allocations: 43.95 kB / 440.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.3846, allocations: 59.17 kB / 440.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.318e-05/0.3847, allocations: 44.05 kB / 440.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.387, allocations: 1.921 MB / 442.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.387, allocations: 0 / 442.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00131/0.3883, allocations: 0.5894 MB / 443 MB, free: 7.473 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.003866/0.3922, allocations: 2.592 MB / 445.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.394, allocations: 0.852 MB / 446.4 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.394, allocations: 128 / 446.4 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007607/0.3948, allocations: 475.9 kB / 446.9 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/0.3969, allocations: 495.5 kB / 447.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03948/0.4364, allocations: 22.08 MB / 469.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001336/0.4378, allocations: 1.669 MB / 471.1 MB, free: 9.418 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001351/0.4392, allocations: 361.3 kB / 471.5 MB, free: 9.059 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/0.4405, allocations: 1.222 MB / 472.7 MB, free: 7.836 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4405, allocations: 0 / 472.7 MB, free: 7.836 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09495/0.5355, allocations: 58.73 MB / 0.519 GB, free: 13.12 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/0.5357, allocations: 210.1 kB / 0.5192 GB, free: 12.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.459/3.995, allocations: 5.797 kB / 0.5192 GB, free: 12.86 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