Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002103/0.002103, allocations: 211.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 7.793 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 51.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2457, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01897/0.2647, allocations: 12.4 MB / 443.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03448/0.2992, allocations: 17.89 MB / 461.4 MB, free: 8.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004178/0.3034, allocations: 138.6 kB / 461.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00465/0.308, allocations: 1.134 MB / 462.6 MB, free: 6.973 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008704/0.3167, allocations: 2.351 MB / 465 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00507/0.3218, allocations: 1.422 MB / 466.4 MB, free: 3.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01079/0.3326, allocations: 6.596 MB / 473 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006247/0.3332, allocations: 277.7 kB / 473.3 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0017/0.3349, allocations: 1.155 MB / 474.4 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00164/0.3365, allocations: 1.11 MB / 475.5 MB, free: 9.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.3367, allocations: 72 kB / 475.6 MB, free: 9.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003467/0.3402, allocations: 1.245 MB / 476.9 MB, free: 8.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004118/0.3406, allocations: 325.6 kB / 477.2 MB, free: 8.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001342/0.342, allocations: 1.013 MB / 478.2 MB, free: 7.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005864/0.3478, allocations: 3.83 MB / 482 MB, free: 3.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3478, allocations: 4 kB / 482 MB, free: 3.477 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3478, allocations: 0 / 482 MB, free: 3.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.503e-05/0.3479, allocations: 0 / 482 MB, free: 3.477 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.005948/0.3538, allocations: 3.722 MB / 485.7 MB, free: 15.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3539, allocations: 16.03 kB / 485.8 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001441/0.354, allocations: 98.5 kB / 485.9 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000515/0.3545, allocations: 417.4 kB / 486.3 MB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003717/0.3583, allocations: 2.291 MB / 488.6 MB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.247e-05/0.3583, allocations: 36.98 kB / 488.6 MB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.3584, allocations: 56 kB / 488.6 MB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.3599, allocations: 0.7304 MB / 489.4 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3599, allocations: 4 kB / 489.4 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.08e-05/0.36, allocations: 20 kB / 489.4 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.36, allocations: 19.98 kB / 489.4 MB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.3616, allocations: 0.8163 MB / 490.2 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00541/0.367, allocations: 2.848 MB / 493.1 MB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.3682, allocations: 0.5164 MB / 493.6 MB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009819/0.3692, allocations: 0.5769 MB / 494.2 MB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02702/0.3962, allocations: 13.72 MB / 0.496 GB, free: 8.953 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007756/0.397, allocations: 357.7 kB / 0.4963 GB, free: 8.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.397, allocations: 4 kB / 0.4963 GB, free: 8.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002363/0.3994, allocations: 1.103 MB / 0.4974 GB, free: 7.477 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.3994, allocations: 63.33 kB / 0.4975 GB, free: 7.402 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/0.4031, allocations: 2.954 MB / 0.5004 GB, free: 4.438 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.564e-05/0.4032, allocations: 37.7 kB / 0.5004 GB, free: 4.395 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.4047, allocations: 1.502 MB / 0.5019 GB, free: 2.883 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.4049, allocations: 174.5 kB / 0.502 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003756/0.4053, allocations: 230.3 kB / 0.5023 GB, free: 2.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.4055, allocations: 341.9 kB / 0.5026 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006263/0.4061, allocations: 237.9 kB / 0.5028 GB, free: 1.906 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008872/0.407, allocations: 0.6018 MB / 0.5034 GB, free: 1.129 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.4085, allocations: 0.9012 MB / 0.5043 GB, free: 56 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.4085, allocations: 4 kB / 0.5043 GB, free: 52 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002381/0.4109, allocations: 1.239 MB / 0.5055 GB, free: 14.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.411, allocations: 12 kB / 0.5055 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/0.4111, allocations: 80 kB / 0.5056 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.961e-05/0.4111, allocations: 16 kB / 0.5056 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.4119, allocations: 204 kB / 0.5058 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.558e-05/0.4119, allocations: 27.92 kB / 0.5058 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.413, allocations: 107.3 kB / 0.5059 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.4131, allocations: 64 kB / 0.506 GB, free: 14.3 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.0009544/0.414, allocations: 433.4 kB / 0.5064 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007058/0.4147, allocations: 405.5 kB / 0.5068 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002775/0.4175, allocations: 1.194 MB / 0.5079 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.4175, allocations: 7.938 kB / 0.5079 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4175, allocations: 3.938 kB / 0.508 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4175, allocations: 0 / 0.508 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003712/0.4213, allocations: 2.021 MB / 0.5099 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001039/0.4214, allocations: 72 kB / 0.51 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005293/0.4219, allocations: 99.91 kB / 0.5101 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.4219, allocations: 0 / 0.5101 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-05/0.422, allocations: 28 kB / 0.5101 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.422, allocations: 4 kB / 0.5101 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.422, allocations: 4 kB / 0.5101 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002557/0.4245, allocations: 1.322 MB / 0.5114 GB, free: 8.625 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.4256, allocations: 419.2 kB / 0.5118 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002889/0.4259, allocations: 8 kB / 0.5118 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007382/0.4266, allocations: 31.95 kB / 0.5119 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4268, allocations: 63.81 kB / 0.5119 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/0.4269, allocations: 44.05 kB / 0.512 GB, free: 8.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002646/0.4295, allocations: 1.907 MB / 0.5138 GB, free: 6.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4295, allocations: 0 / 0.5138 GB, free: 6.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001327/0.4308, allocations: 0.5852 MB / 0.5144 GB, free: 5.578 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.003833/0.4347, allocations: 2.55 MB / 0.5169 GB, free: 2.992 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.4363, allocations: 0.7794 MB / 0.5176 GB, free: 2.188 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4364, allocations: 0 / 0.5176 GB, free: 2.188 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007831/0.4371, allocations: 426.9 kB / 0.518 GB, free: 1.746 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002561/0.4397, allocations: 0.618 MB / 0.5187 GB, free: 1.125 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/0.4645, allocations: 16.43 MB / 0.5347 GB, free: 160 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1716/0.636, allocations: 1.112 MB / 0.5358 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.6371, allocations: 358.2 kB / 0.5361 GB, free: 107 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.6381, allocations: 1.216 MB / 0.5373 GB, free: 106.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6381, allocations: 0 / 0.5373 GB, free: 106.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09238/0.7305, allocations: 64.48 MB / 0.6003 GB, free: 48.46 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.76/15.49, allocations: 11.44 kB / 0.6003 GB, free: 48.45 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_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: 18.6567492330214]