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.001408/0.001408, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001516/0.001516, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.436/1.436, allocations: 230.5 MB / 258.2 MB, free: 8.012 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 59.91 kB / 378.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2623, allocations: 53.41 MB / 432 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01588/0.2782, allocations: 14.78 MB / 446.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02749/0.3057, allocations: 20.79 MB / 467.5 MB, free: 2.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00374/0.3094, allocations: 134.6 kB / 467.7 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003967/0.3134, allocations: 1.246 MB / 468.9 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009056/0.3225, allocations: 2.37 MB / 471.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005134/0.3276, allocations: 1.461 MB / 472.7 MB, free: 13.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01134/0.3389, allocations: 6.603 MB / 479.3 MB, free: 7.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008419/0.3398, allocations: 273.7 kB / 479.6 MB, free: 6.836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002099/0.3419, allocations: 1.151 MB / 480.8 MB, free: 5.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001592/0.3435, allocations: 1.11 MB / 481.9 MB, free: 4.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.3436, allocations: 76 kB / 481.9 MB, free: 4.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004796/0.3484, allocations: 1.475 MB / 483.4 MB, free: 3.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000533/0.349, allocations: 333.6 kB / 483.7 MB, free: 2.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001969/0.3509, allocations: 1.366 MB / 485.1 MB, free: 1.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007479/0.3584, allocations: 3.795 MB / 488.9 MB, free: 13.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3584, allocations: 0 / 488.9 MB, free: 13.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3584, allocations: 0 / 488.9 MB, free: 13.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.956e-05/0.3585, allocations: 0 / 488.9 MB, free: 13.5 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.00648/0.365, allocations: 3.73 MB / 492.6 MB, free: 9.707 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.365, allocations: 12.03 kB / 492.6 MB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.324e-05/0.3651, allocations: 20.94 kB / 492.7 MB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.3652, allocations: 98.5 kB / 492.8 MB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006452/0.3659, allocations: 413.4 kB / 493.2 MB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003984/0.3698, allocations: 2.295 MB / 495.5 MB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.753e-05/0.3699, allocations: 40.94 kB / 495.5 MB, free: 6.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.37, allocations: 52 kB / 495.6 MB, free: 6.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.3715, allocations: 0.7343 MB / 496.3 MB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.3715, allocations: 0 / 496.3 MB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-05/0.3716, allocations: 19.98 kB / 496.3 MB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.684e-05/0.3716, allocations: 20 kB / 496.3 MB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.3732, allocations: 0.8241 MB / 497.1 MB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00567/0.3789, allocations: 3.003 MB / 0.4884 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.3801, allocations: 0.5164 MB / 0.4889 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009786/0.3811, allocations: 0.5653 MB / 0.4895 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02615/0.4073, allocations: 13.79 MB / 0.503 GB, free: 2.727 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008837/0.4081, allocations: 361.7 kB / 0.5033 GB, free: 2.359 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/0.4081, allocations: 0 / 0.5033 GB, free: 2.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00266/0.4108, allocations: 1.11 MB / 0.5044 GB, free: 1.246 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.4109, allocations: 59.41 kB / 0.5044 GB, free: 1.176 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004225/0.4151, allocations: 2.935 MB / 0.5073 GB, free: 14.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.4152, allocations: 37.7 kB / 0.5073 GB, free: 14.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.4166, allocations: 1.495 MB / 0.5088 GB, free: 12.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.4168, allocations: 174.6 kB / 0.509 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003323/0.4171, allocations: 234.3 kB / 0.5092 GB, free: 12.28 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.4173, allocations: 341.9 kB / 0.5095 GB, free: 11.94 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006369/0.4179, allocations: 241.8 kB / 0.5097 GB, free: 11.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008626/0.4188, allocations: 0.5979 MB / 0.5103 GB, free: 10.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.4203, allocations: 0.9012 MB / 0.5112 GB, free: 9.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.4203, allocations: 4 kB / 0.5112 GB, free: 9.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002451/0.4227, allocations: 1.243 MB / 0.5124 GB, free: 8.598 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.4228, allocations: 10.5 kB / 0.5124 GB, free: 8.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.4229, allocations: 80 kB / 0.5125 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.694e-05/0.4229, allocations: 24.73 kB / 0.5125 GB, free: 8.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007126/0.4236, allocations: 199.6 kB / 0.5127 GB, free: 8.293 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.882e-05/0.4237, allocations: 27.92 kB / 0.5128 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009468/0.4246, allocations: 107.3 kB / 0.5129 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4247, allocations: 67.98 kB / 0.5129 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.0007467/0.4255, allocations: 436.5 kB / 0.5133 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003947/0.4259, allocations: 401.5 kB / 0.5137 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002617/0.4285, allocations: 1.201 MB / 0.5149 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.4285, allocations: 4 kB / 0.5149 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4285, allocations: 0 / 0.5149 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.4285, allocations: 3.984 kB / 0.5149 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003415/0.4319, allocations: 2.08 MB / 0.5169 GB, free: 3.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-05/0.432, allocations: 72 kB / 0.517 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004808/0.4325, allocations: 87.86 kB / 0.5171 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.4325, allocations: 0 / 0.5171 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.034e-05/0.4326, allocations: 35.98 kB / 0.5171 GB, free: 3.715 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.4326, allocations: 4 kB / 0.5171 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4326, allocations: 0 / 0.5171 GB, free: 3.711 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.4349, allocations: 1.314 MB / 0.5184 GB, free: 2.371 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007879/0.4357, allocations: 419.2 kB / 0.5188 GB, free: 1.961 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002865/0.4359, allocations: 11.98 kB / 0.5188 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006515/0.4366, allocations: 31.97 kB / 0.5189 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.4368, allocations: 71.92 kB / 0.5189 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.763e-05/0.4368, allocations: 36 kB / 0.519 GB, free: 1.812 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002648/0.4395, allocations: 1.903 MB / 0.5208 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4395, allocations: 0 / 0.5208 GB, free: 15.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001331/0.4408, allocations: 0.593 MB / 0.5214 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.003746/0.4446, allocations: 2.542 MB / 0.5239 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.4462, allocations: 0.7712 MB / 0.5246 GB, free: 11.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4462, allocations: 192 / 0.5246 GB, free: 11.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007577/0.447, allocations: 434.9 kB / 0.525 GB, free: 11.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/0.4496, allocations: 0.6075 MB / 0.5256 GB, free: 10.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2304/0.68, allocations: 16.44 MB / 0.5417 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/0.6813, allocations: 1.667 MB / 0.5433 GB, free: 101.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001/0.6823, allocations: 358.8 kB / 0.5437 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008782/0.6832, allocations: 1.213 MB / 0.5448 GB, free: 100.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.393e-06/0.6832, allocations: 0 / 0.5448 GB, free: 100.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09627/0.7795, allocations: 61.71 MB / 0.6051 GB, free: 44.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.81/19.59, allocations: 16.38 kB / 0.6051 GB, free: 44.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 23.50386904203333]