Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 213.1 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 59.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2682, allocations: 53.42 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01596/0.2841, allocations: 14.77 MB / 445.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02678/0.3109, allocations: 20.79 MB / 466.7 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002896/0.3138, allocations: 130.6 kB / 466.9 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003722/0.3175, allocations: 1.254 MB / 468.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008123/0.3256, allocations: 2.359 MB / 470.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005279/0.3309, allocations: 1.468 MB / 471.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3421, allocations: 6.607 MB / 478.6 MB, free: 7.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007609/0.3429, allocations: 265.7 kB / 478.8 MB, free: 6.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.3448, allocations: 1.159 MB / 480 MB, free: 5.664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.3464, allocations: 1.102 MB / 481.1 MB, free: 4.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.3466, allocations: 76 kB / 481.1 MB, free: 4.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00437/0.3509, allocations: 1.479 MB / 482.6 MB, free: 3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004409/0.3514, allocations: 329.6 kB / 482.9 MB, free: 2.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001599/0.353, allocations: 1.374 MB / 484.3 MB, free: 1.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005986/0.359, allocations: 3.799 MB / 488.1 MB, free: 13.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.359, allocations: 4 kB / 488.1 MB, free: 13.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.359, allocations: 0 / 488.1 MB, free: 13.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.401e-05/0.3591, allocations: 0 / 488.1 MB, free: 13.47 MB / 398.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.006076/0.3651, allocations: 3.726 MB / 491.8 MB, free: 9.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.3652, allocations: 12.03 kB / 491.9 MB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.3653, allocations: 98.5 kB / 492 MB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004795/0.3658, allocations: 417.4 kB / 492.4 MB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003909/0.3697, allocations: 2.295 MB / 494.7 MB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.586e-05/0.3698, allocations: 37 kB / 494.7 MB, free: 6.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.3699, allocations: 55.98 kB / 494.8 MB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.3713, allocations: 0.7265 MB / 495.5 MB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.3714, allocations: 3.938 kB / 495.5 MB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-05/0.3714, allocations: 24 kB / 495.5 MB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/0.3715, allocations: 23.98 kB / 495.5 MB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.3731, allocations: 0.8124 MB / 496.3 MB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006137/0.3792, allocations: 3 MB / 499.3 MB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.3805, allocations: 0.5203 MB / 499.9 MB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.3815, allocations: 0.5731 MB / 0.4887 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02653/0.408, allocations: 13.79 MB / 0.5022 GB, free: 2.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008145/0.4088, allocations: 365.7 kB / 0.5025 GB, free: 2.359 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.156e-06/0.4088, allocations: 0 / 0.5025 GB, free: 2.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00255/0.4114, allocations: 1.099 MB / 0.5036 GB, free: 1.258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.4114, allocations: 67.34 kB / 0.5037 GB, free: 1.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/0.4154, allocations: 2.935 MB / 0.5065 GB, free: 14.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.4155, allocations: 37.7 kB / 0.5066 GB, free: 14.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001467/0.417, allocations: 1.498 MB / 0.508 GB, free: 12.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.4172, allocations: 178.6 kB / 0.5082 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003382/0.4175, allocations: 226.4 kB / 0.5084 GB, free: 12.28 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4177, allocations: 341.9 kB / 0.5087 GB, free: 11.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006029/0.4183, allocations: 241.9 kB / 0.509 GB, free: 11.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009018/0.4192, allocations: 0.5979 MB / 0.5095 GB, free: 10.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.4208, allocations: 0.9012 MB / 0.5104 GB, free: 9.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.4208, allocations: 4 kB / 0.5104 GB, free: 9.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002649/0.4234, allocations: 1.251 MB / 0.5117 GB, free: 8.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.4235, allocations: 8 kB / 0.5117 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.4236, allocations: 80 kB / 0.5117 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.368e-05/0.4236, allocations: 20 kB / 0.5118 GB, free: 8.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007366/0.4244, allocations: 200.2 kB / 0.5119 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.977e-05/0.4244, allocations: 27.92 kB / 0.512 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.4256, allocations: 111.3 kB / 0.5121 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.4257, allocations: 60 kB / 0.5121 GB, free: 8.094 MB / 430.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.0008765/0.4266, allocations: 440.4 kB / 0.5126 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000505/0.4271, allocations: 409.5 kB / 0.5129 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002744/0.4298, allocations: 1.19 MB / 0.5141 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.4298, allocations: 4 kB / 0.5141 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.4298, allocations: 0 / 0.5141 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4298, allocations: 0 / 0.5141 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.4335, allocations: 2.076 MB / 0.5161 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001015/0.4336, allocations: 72.06 kB / 0.5162 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.4341, allocations: 91.91 kB / 0.5163 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.4341, allocations: 3.938 kB / 0.5163 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.993e-05/0.4342, allocations: 32 kB / 0.5163 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.4342, allocations: 0 / 0.5163 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4342, allocations: 0 / 0.5163 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002452/0.4366, allocations: 1.318 MB / 0.5176 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000978/0.4376, allocations: 423.1 kB / 0.518 GB, free: 1.961 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/0.4379, allocations: 12 kB / 0.518 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006539/0.4386, allocations: 31.95 kB / 0.5181 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.4388, allocations: 67.81 kB / 0.5181 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.357e-05/0.4389, allocations: 44.05 kB / 0.5182 GB, free: 1.809 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002971/0.4418, allocations: 1.903 MB / 0.52 GB, free: 15.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4418, allocations: 0 / 0.52 GB, free: 15.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001512/0.4433, allocations: 0.5891 MB / 0.5206 GB, free: 15.31 MB / 446.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.003946/0.4473, allocations: 2.554 MB / 0.5231 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.449, allocations: 0.779 MB / 0.5239 GB, free: 11.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.449, allocations: 0 / 0.5239 GB, free: 11.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007854/0.4498, allocations: 423.2 kB / 0.5243 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.4523, allocations: 0.6023 MB / 0.5248 GB, free: 10.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2441/0.6964, allocations: 16.45 MB / 0.5409 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.6977, allocations: 1.666 MB / 0.5425 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001029/0.6987, allocations: 361.9 kB / 0.5429 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008932/0.6996, allocations: 1.209 MB / 0.5441 GB, free: 99.56 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6996, allocations: 0 / 0.5441 GB, free: 99.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/0.8021, allocations: 61.68 MB / 0.6043 GB, free: 43.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.23/20.03, allocations: 8.672 kB / 0.6043 GB, free: 43.37 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! Error: Could not read variable v.p.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv. Warning: Get data of variable v.p.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.700612265001837]