Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_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.0008838/0.0008838, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0009748/0.000975, allocations: 175.4 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.000261, allocations: 4 kB / 301.5 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.0931, allocations: 50.41 MB / 351.9 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01102/0.1042, allocations: 14.03 MB / 366 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2008/0.305, allocations: 20.57 MB / 386.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001677/0.3067, allocations: 30.16 kB / 386.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003599/0.3103, allocations: 1.107 MB / 387.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00879/0.3191, allocations: 1.915 MB / 389.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005979/0.3251, allocations: 1.202 MB / 390.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01/0.3352, allocations: 6.356 MB / 397.1 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008595/0.3361, allocations: 435.5 kB / 397.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.338, allocations: 1.03 MB / 398.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.3392, allocations: 1.08 MB / 399.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.3393, allocations: 41.91 kB / 399.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004626/0.3439, allocations: 1.456 MB / 401.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000294/0.3443, allocations: 289.6 kB / 401.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.3456, allocations: 1.369 MB / 402.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004707/0.3503, allocations: 3.604 MB / 406.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3503, allocations: 4 kB / 406.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3503, allocations: 0 / 406.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.503e-05/0.3504, allocations: 0 / 406.4 MB, free: 14.61 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.00479/0.3552, allocations: 3.222 MB / 409.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.3553, allocations: 12.03 kB / 409.7 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.3554, allocations: 94.5 kB / 409.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003743/0.3558, allocations: 403.2 kB / 410.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00322/0.359, allocations: 2.433 MB / 412.6 MB, free: 8.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.3591, allocations: 37.5 kB / 412.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.3592, allocations: 59.83 kB / 412.7 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.3605, allocations: 0.7499 MB / 413.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3606, allocations: 0 / 413.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-05/0.3606, allocations: 20 kB / 413.5 MB, free: 7.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.3607, allocations: 23.98 kB / 413.5 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.3623, allocations: 0.8554 MB / 414.3 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004899/0.3672, allocations: 3.082 MB / 417.4 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.3684, allocations: 0.6181 MB / 418 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.3694, allocations: 0.6643 MB / 418.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0281/0.3975, allocations: 30.15 MB / 448.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008007/0.3984, allocations: 401.3 kB / 449.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/0.3984, allocations: 4 kB / 449.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002223/0.4006, allocations: 1.148 MB / 450.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.4007, allocations: 59.41 kB / 450.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00341/0.4041, allocations: 2.935 MB / 453.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.455e-05/0.4042, allocations: 37.7 kB / 453.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001275/0.4055, allocations: 1.485 MB / 454.9 MB, free: 9.711 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.4056, allocations: 169.7 kB / 455.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.4057, allocations: 73.67 kB / 455.1 MB, free: 9.465 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.4058, allocations: 334 kB / 455.5 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006042/0.4065, allocations: 265.8 kB / 455.7 MB, free: 8.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00084/0.4073, allocations: 0.6254 MB / 456.4 MB, free: 8.078 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.4088, allocations: 0.9364 MB / 457.3 MB, free: 6.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.4088, allocations: 4 kB / 457.3 MB, free: 6.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002013/0.4108, allocations: 1.268 MB / 458.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.4109, allocations: 12.94 kB / 458.6 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/0.411, allocations: 80 kB / 458.7 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.411, allocations: 16 kB / 458.7 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006804/0.4117, allocations: 219.6 kB / 458.9 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.378e-05/0.4117, allocations: 23.92 kB / 458.9 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009224/0.4126, allocations: 115.1 kB / 459 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.4128, allocations: 68 kB / 459.1 MB, free: 5.168 MB / 366.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.0005967/0.4134, allocations: 437.4 kB / 459.5 MB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003128/0.4137, allocations: 383.3 kB / 459.9 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/0.4165, allocations: 1.248 MB / 461.1 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.4165, allocations: 4 kB / 461.1 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/0.4165, allocations: 0 / 461.1 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4165, allocations: 7.938 kB / 461.1 MB, free: 3.074 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003167/0.4197, allocations: 2.132 MB / 463.3 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-05/0.4198, allocations: 71.98 kB / 463.3 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004596/0.4203, allocations: 107.9 kB / 463.5 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.4203, allocations: 0 / 463.5 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/0.4203, allocations: 35.98 kB / 463.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4204, allocations: 0 / 463.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4204, allocations: 0 / 463.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.4226, allocations: 1.363 MB / 464.9 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005804/0.4232, allocations: 472.3 kB / 465.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.4235, allocations: 14.06 kB / 465.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006423/0.4241, allocations: 39.97 kB / 465.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.4243, allocations: 59.94 kB / 465.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.534e-05/0.4243, allocations: 39.98 kB / 465.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002278/0.4266, allocations: 1.903 MB / 467.4 MB, free: 12.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4266, allocations: 4 kB / 467.4 MB, free: 12.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00127/0.4279, allocations: 0.5855 MB / 468 MB, free: 12.14 MB / 382.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.003468/0.4314, allocations: 2.595 MB / 470.6 MB, free: 9.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.4329, allocations: 0.8528 MB / 471.4 MB, free: 8.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4329, allocations: 0 / 471.4 MB, free: 8.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007502/0.4337, allocations: 467.2 kB / 471.9 MB, free: 8.145 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/0.4363, allocations: 0.584 MB / 472.4 MB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03896/0.4753, allocations: 21.88 MB / 494.3 MB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001541/0.4769, allocations: 1.661 MB / 496 MB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001446/0.4783, allocations: 361.1 kB / 496.3 MB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/0.4797, allocations: 1.21 MB / 497.6 MB, free: 12.26 MB / 414.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4797, allocations: 0 / 497.6 MB, free: 12.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.561/2.041, allocations: 58.45 MB / 0.543 GB, free: 152.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/2.041, allocations: 215.2 kB / 0.5432 GB, free: 152.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.294/6.335, allocations: 3.828 kB / 0.5432 GB, free: 152.2 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches