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.001377/0.001377, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001507/0.001507, allocations: 192 kB / 18.51 MB, free: 4.508 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.303/1.303, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001305/0.001305, allocations: 47.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07026/0.07157, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01192/0.08354, allocations: 14.03 MB / 341.4 MB, free: 6.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01889/0.1025, allocations: 19.72 MB / 361.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001234/0.1037, allocations: 31.81 kB / 361.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002468/0.1063, allocations: 1.209 MB / 362.4 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005026/0.1113, allocations: 2.266 MB / 364.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003092/0.1144, allocations: 1.389 MB / 366 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007676/0.1221, allocations: 6.309 MB / 372.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005831/0.1227, allocations: 465.1 kB / 372.8 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009404/0.1237, allocations: 0.9678 MB / 373.8 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009799/0.1246, allocations: 1.079 MB / 374.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001695/0.1248, allocations: 84 kB / 374.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002919/0.1278, allocations: 1.163 MB / 376.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002888/0.1281, allocations: 337.5 kB / 376.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001089/0.1292, allocations: 1.386 MB / 377.8 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1316/0.2608, allocations: 3.754 MB / 381.5 MB, free: 24.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2608, allocations: 0 / 381.5 MB, free: 24.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2608, allocations: 0 / 381.5 MB, free: 24.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001428/0.261, allocations: 0.6094 kB / 381.5 MB, free: 24.64 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.00546/0.2664, allocations: 3.705 MB / 385.3 MB, free: 22.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.2665, allocations: 10.52 kB / 385.3 MB, free: 22.55 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.2666, allocations: 103.1 kB / 385.4 MB, free: 22.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003269/0.2669, allocations: 394.8 kB / 385.7 MB, free: 22.31 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002824/0.2698, allocations: 2.455 MB / 388.2 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.2698, allocations: 41.06 kB / 388.2 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.2699, allocations: 55.56 kB / 388.3 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.2711, allocations: 0.725 MB / 389 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.2711, allocations: 1.188 kB / 389 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.56e-05/0.2712, allocations: 21.52 kB / 389 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.2712, allocations: 19.48 kB / 389.1 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001363/0.2726, allocations: 0.8226 MB / 389.9 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003966/0.2765, allocations: 3.06 MB / 392.9 MB, free: 20.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.2776, allocations: 0.5804 MB / 393.5 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000844/0.2784, allocations: 0.6495 MB / 394.2 MB, free: 20.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02298/0.3014, allocations: 30.18 MB / 424.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00078/0.3023, allocations: 365.5 kB / 424.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.3023, allocations: 0 / 424.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002362/0.3046, allocations: 1.099 MB / 425.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.3047, allocations: 65.14 kB / 425.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/0.3083, allocations: 2.948 MB / 428.8 MB, free: 6.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.247e-05/0.3084, allocations: 41.7 kB / 428.9 MB, free: 6.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.3097, allocations: 1.493 MB / 430.4 MB, free: 4.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.3099, allocations: 165 kB / 430.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002854/0.3102, allocations: 230.1 kB / 430.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3103, allocations: 334 kB / 431.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005721/0.3109, allocations: 249.8 kB / 431.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008147/0.3117, allocations: 0.6067 MB / 431.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.3131, allocations: 0.8913 MB / 432.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3132, allocations: 4 kB / 432.8 MB, free: 2.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002057/0.3152, allocations: 1.226 MB / 434 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3152, allocations: 12.31 kB / 434.1 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/0.3154, allocations: 87.94 kB / 434.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.3154, allocations: 16 kB / 434.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006749/0.3161, allocations: 205.6 kB / 434.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.137e-05/0.3161, allocations: 23.08 kB / 434.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.3171, allocations: 106.1 kB / 434.5 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.682e-05/0.3172, allocations: 66.3 kB / 434.6 MB, free: 396 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.000597/0.3179, allocations: 438.4 kB / 435 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/0.3182, allocations: 383.3 kB / 435.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002774/0.321, allocations: 1.208 MB / 436.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.321, allocations: 4 kB / 436.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.321, allocations: 0 / 436.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.321, allocations: 3.984 kB / 436.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/0.3241, allocations: 2.096 MB / 438.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.602e-05/0.3242, allocations: 72.88 kB / 438.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004665/0.3247, allocations: 101.6 kB / 438.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3247, allocations: 4 kB / 438.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.292e-05/0.3248, allocations: 28 kB / 438.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3248, allocations: 0 / 438.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3248, allocations: 8.062 kB / 438.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.327, allocations: 1.299 MB / 440.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006429/0.3276, allocations: 480.2 kB / 440.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002916/0.3279, allocations: 19.98 kB / 440.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006546/0.3286, allocations: 27.97 kB / 440.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.3287, allocations: 59.14 kB / 440.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.329e-05/0.3288, allocations: 39.98 kB / 440.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.331, allocations: 1.916 MB / 442.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.331, allocations: 0 / 442.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001284/0.3323, allocations: 0.5973 MB / 443.3 MB, free: 7.562 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.003328/0.3357, allocations: 2.544 MB / 445.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.3373, allocations: 0.828 MB / 446.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3373, allocations: 0 / 446.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007291/0.338, allocations: 446 kB / 447.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/0.3397, allocations: 0.5151 MB / 447.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02164/0.3614, allocations: 21.17 MB / 468.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009942/0.3624, allocations: 1.669 MB / 470.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001085/0.3635, allocations: 365.3 kB / 470.8 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/0.3645, allocations: 1.222 MB / 472 MB, free: 8.895 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3645, allocations: 1.969 kB / 472 MB, free: 8.895 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8848/1.249, allocations: 60.45 MB / 0.52 GB, free: 12.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/11.36, allocations: 3.75 kB / 0.52 GB, free: 12.37 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches