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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002223/0.002223, allocations: 190.9 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 47.94 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2359, allocations: 52.17 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01527/0.2511, allocations: 12.4 MB / 435 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02404/0.2752, allocations: 17.85 MB / 452.8 MB, free: 24 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.2774, allocations: 138.6 kB / 453 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.2807, allocations: 1.146 MB / 454.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007485/0.2882, allocations: 2.347 MB / 456.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004554/0.2927, allocations: 1.41 MB / 457.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01035/0.3031, allocations: 6.514 MB / 464.4 MB, free: 4.422 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006576/0.3037, allocations: 261.7 kB / 464.6 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001796/0.3055, allocations: 1.163 MB / 465.8 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.307, allocations: 1.059 MB / 466.8 MB, free: 1.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.3072, allocations: 72 kB / 466.9 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.3105, allocations: 1.214 MB / 468.1 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003361/0.3109, allocations: 321.7 kB / 468.4 MB, free: 308 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001125/0.312, allocations: 1.009 MB / 469.5 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005513/0.3175, allocations: 3.826 MB / 473.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3175, allocations: 0 / 473.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3175, allocations: 4 kB / 473.3 MB, free: 11.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.415e-05/0.3176, allocations: 0 / 473.3 MB, free: 11.43 MB / 382.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.005909/0.3235, allocations: 3.734 MB / 477 MB, free: 7.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3235, allocations: 8.031 kB / 477 MB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.3237, allocations: 98.5 kB / 477.1 MB, free: 7.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000489/0.3242, allocations: 421.4 kB / 477.5 MB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004086/0.3282, allocations: 2.291 MB / 479.8 MB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.259e-05/0.3283, allocations: 37 kB / 479.9 MB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.3284, allocations: 55.94 kB / 479.9 MB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.3298, allocations: 0.7382 MB / 480.7 MB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3299, allocations: 0 / 480.7 MB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.3299, allocations: 16 kB / 480.7 MB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.3299, allocations: 27.98 kB / 480.7 MB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.3316, allocations: 0.8124 MB / 481.5 MB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005364/0.337, allocations: 2.844 MB / 484.4 MB, free: 124 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.3382, allocations: 0.5202 MB / 484.9 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3392, allocations: 0.5653 MB / 485.4 MB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02588/0.3651, allocations: 13.69 MB / 499.1 MB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008028/0.3659, allocations: 373.6 kB / 499.5 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.776e-06/0.3659, allocations: 0 / 499.5 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002381/0.3683, allocations: 1.103 MB / 0.4889 GB, free: 15.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.3683, allocations: 59.41 kB / 0.4889 GB, free: 15.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.3721, allocations: 2.954 MB / 0.4918 GB, free: 12.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.993e-05/0.3722, allocations: 29.7 kB / 0.4918 GB, free: 12.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.3736, allocations: 1.502 MB / 0.4933 GB, free: 10.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.3738, allocations: 178.6 kB / 0.4935 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003152/0.3741, allocations: 226.4 kB / 0.4937 GB, free: 10.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3743, allocations: 337.9 kB / 0.494 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000608/0.3749, allocations: 241.9 kB / 0.4942 GB, free: 9.898 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000926/0.3758, allocations: 0.6134 MB / 0.4948 GB, free: 9.109 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.3774, allocations: 0.8971 MB / 0.4957 GB, free: 8.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.3774, allocations: 4 kB / 0.4957 GB, free: 8.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002229/0.3796, allocations: 1.243 MB / 0.4969 GB, free: 6.785 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.3796, allocations: 15.98 kB / 0.4969 GB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000116/0.3797, allocations: 80 kB / 0.497 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.309e-05/0.3798, allocations: 16 kB / 0.497 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007279/0.3805, allocations: 199.7 kB / 0.4972 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.085e-05/0.3805, allocations: 31.86 kB / 0.4973 GB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009495/0.3815, allocations: 119.3 kB / 0.4974 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.3816, allocations: 68 kB / 0.4974 GB, free: 6.266 MB / 414.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.0007616/0.3824, allocations: 433.4 kB / 0.4978 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/0.3828, allocations: 401.5 kB / 0.4982 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002674/0.3855, allocations: 1.19 MB / 0.4994 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3855, allocations: 4 kB / 0.4994 GB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3855, allocations: 7.984 kB / 0.4994 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3855, allocations: 0 / 0.4994 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003742/0.3892, allocations: 2.01 MB / 0.5014 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001211/0.3893, allocations: 68 kB / 0.5014 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005118/0.3898, allocations: 91.86 kB / 0.5015 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3899, allocations: 0 / 0.5015 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.298e-05/0.3899, allocations: 39.98 kB / 0.5016 GB, free: 1.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3899, allocations: 8 kB / 0.5016 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3899, allocations: 0 / 0.5016 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.393, allocations: 1.318 MB / 0.5029 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008759/0.3939, allocations: 427.1 kB / 0.5033 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002692/0.3942, allocations: 11.94 kB / 0.5033 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006779/0.3948, allocations: 31.97 kB / 0.5033 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/0.395, allocations: 67.86 kB / 0.5034 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.07e-05/0.3951, allocations: 36 kB / 0.5034 GB, free: 48 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002769/0.3979, allocations: 1.903 MB / 0.5053 GB, free: 14.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3979, allocations: 4.062 kB / 0.5053 GB, free: 14.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001545/0.3994, allocations: 0.5814 MB / 0.5058 GB, free: 13.56 MB / 430.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.003891/0.4033, allocations: 2.55 MB / 0.5083 GB, free: 10.97 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.405, allocations: 0.7711 MB / 0.5091 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.405, allocations: 64 / 0.5091 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007915/0.4058, allocations: 443.2 kB / 0.5095 GB, free: 9.719 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.4084, allocations: 0.6115 MB / 0.5101 GB, free: 9.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02698/0.4354, allocations: 16.44 MB / 0.5261 GB, free: 8.129 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.4366, allocations: 1.109 MB / 0.5272 GB, free: 6.988 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001171/0.4378, allocations: 357.1 kB / 0.5276 GB, free: 6.633 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001488/0.4393, allocations: 1.214 MB / 0.5288 GB, free: 5.418 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4393, allocations: 7.938 kB / 0.5288 GB, free: 5.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2864/0.7257, allocations: 64.2 MB / 0.5915 GB, free: 61.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/16.06, allocations: 15.05 kB / 0.5915 GB, free: 61.92 MB / 446.1 MB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.0009996 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/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) [Timeout 660] "Error: Could not read variable mp1.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.698150423821062]