Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.005684/0.005684, allocations: 109.1 kB / 21.98 MB, free: 5.184 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.00141/0.00141, allocations: 220.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.475/1.475, allocations: 230.5 MB / 259 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 63.89 kB / 379.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2332, allocations: 53.37 MB / 433.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01521/0.2484, allocations: 14.78 MB / 447.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02541/0.2738, allocations: 20.78 MB / 468.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.276, allocations: 134.6 kB / 468.9 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003385/0.2794, allocations: 1.243 MB / 470.1 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007798/0.2872, allocations: 2.378 MB / 472.5 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004807/0.292, allocations: 1.453 MB / 473.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01119/0.3032, allocations: 6.596 MB / 480.5 MB, free: 7.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00069/0.3039, allocations: 277.7 kB / 480.8 MB, free: 7.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001856/0.3057, allocations: 1.147 MB / 481.9 MB, free: 5.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.3074, allocations: 1.114 MB / 483.1 MB, free: 4.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001955/0.3076, allocations: 76 kB / 483.1 MB, free: 4.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00408/0.3116, allocations: 1.475 MB / 484.6 MB, free: 3.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000441/0.3121, allocations: 337.6 kB / 484.9 MB, free: 2.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001663/0.3137, allocations: 1.366 MB / 486.3 MB, free: 1.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006486/0.3202, allocations: 3.791 MB / 490.1 MB, free: 13.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.3202, allocations: 0 / 490.1 MB, free: 13.78 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3202, allocations: 0 / 490.1 MB, free: 13.78 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001539/0.3204, allocations: 0 / 490.1 MB, free: 13.78 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.006718/0.3271, allocations: 3.734 MB / 493.8 MB, free: 9.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.3272, allocations: 8.031 kB / 493.8 MB, free: 9.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005304/0.3277, allocations: 413.4 kB / 494.2 MB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00403/0.3317, allocations: 2.299 MB / 496.5 MB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.587e-05/0.3318, allocations: 33 kB / 496.6 MB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.3319, allocations: 52 kB / 496.6 MB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.3334, allocations: 0.7343 MB / 497.4 MB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3334, allocations: 0 / 497.4 MB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.748e-05/0.3335, allocations: 23.98 kB / 497.4 MB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/0.3335, allocations: 23.98 kB / 497.4 MB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.3352, allocations: 0.8202 MB / 498.2 MB, free: 5.484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005664/0.3409, allocations: 3.003 MB / 0.4895 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.3421, allocations: 0.5203 MB / 0.49 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.3432, allocations: 0.5623 MB / 0.4905 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02595/0.3691, allocations: 13.79 MB / 0.504 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008156/0.3699, allocations: 361.6 kB / 0.5043 GB, free: 2.773 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.156e-06/0.37, allocations: 4 kB / 0.5043 GB, free: 2.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002472/0.3724, allocations: 1.107 MB / 0.5054 GB, free: 1.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.3725, allocations: 59.41 kB / 0.5055 GB, free: 1.586 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003958/0.3764, allocations: 2.939 MB / 0.5084 GB, free: 14.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.111e-05/0.3765, allocations: 29.7 kB / 0.5084 GB, free: 14.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/0.378, allocations: 1.502 MB / 0.5098 GB, free: 13.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001977/0.3782, allocations: 178.5 kB / 0.51 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003277/0.3785, allocations: 230.4 kB / 0.5102 GB, free: 12.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.3787, allocations: 341.9 kB / 0.5106 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/0.3793, allocations: 241.9 kB / 0.5108 GB, free: 12.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009176/0.3802, allocations: 0.6018 MB / 0.5114 GB, free: 11.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.3817, allocations: 0.8896 MB / 0.5123 GB, free: 10.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/0.3818, allocations: 11.88 kB / 0.5123 GB, free: 10.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002318/0.3841, allocations: 1.247 MB / 0.5135 GB, free: 9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.3841, allocations: 12 kB / 0.5135 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001242/0.3842, allocations: 83.98 kB / 0.5136 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.126e-05/0.3843, allocations: 16 kB / 0.5136 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007471/0.385, allocations: 204 kB / 0.5138 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.904e-05/0.385, allocations: 31.91 kB / 0.5138 GB, free: 8.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009382/0.386, allocations: 107.3 kB / 0.5139 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.3861, allocations: 64 kB / 0.514 GB, free: 8.492 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.0007842/0.3869, allocations: 437.4 kB / 0.5144 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004254/0.3873, allocations: 401.5 kB / 0.5148 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002672/0.39, allocations: 1.186 MB / 0.5159 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.39, allocations: 4 kB / 0.5159 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.39, allocations: 0 / 0.5159 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.39, allocations: 3.984 kB / 0.5159 GB, free: 6.461 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003642/0.3936, allocations: 2.076 MB / 0.518 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001184/0.3937, allocations: 71.98 kB / 0.518 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004811/0.3942, allocations: 95.92 kB / 0.5181 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.3942, allocations: 7.984 kB / 0.5181 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.909e-05/0.3943, allocations: 28 kB / 0.5182 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.3943, allocations: 4 kB / 0.5182 GB, free: 4.117 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3943, allocations: 3.938 kB / 0.5182 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.3968, allocations: 1.322 MB / 0.5195 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009094/0.3978, allocations: 419.1 kB / 0.5199 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002995/0.3981, allocations: 12 kB / 0.5199 GB, free: 2.344 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006977/0.3988, allocations: 27.97 kB / 0.5199 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.3989, allocations: 63.86 kB / 0.52 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.408e-05/0.399, allocations: 36 kB / 0.52 GB, free: 2.219 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003025/0.402, allocations: 1.915 MB / 0.5219 GB, free: 312 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.402, allocations: 0 / 0.5219 GB, free: 312 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001689/0.4037, allocations: 0.5853 MB / 0.5224 GB, free: 15.71 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.001372/0.4051, allocations: 0.7767 MB / 0.5232 GB, free: 14.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.4069, allocations: 0.7755 MB / 0.524 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4069, allocations: 0 / 0.524 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008118/0.4077, allocations: 422.9 kB / 0.5244 GB, free: 13.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002929/0.4106, allocations: 0.6105 MB / 0.525 GB, free: 13.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007777/0.4184, allocations: 4.459 MB / 0.5293 GB, free: 8.574 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001391/0.4198, allocations: 1.668 MB / 0.5309 GB, free: 6.875 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005043/0.4203, allocations: 163.4 kB / 0.5311 GB, free: 6.715 MB / 446.1 MB Notification: Performance of SimCode: time 1.703e-06/0.4203, allocations: 0 / 0.5311 GB, free: 6.715 MB / 446.1 MB Notification: Performance of Templates: time 0.2762/0.6965, allocations: 37.74 MB / 0.568 GB, free: 80.82 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.461819224059582]