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.001202/0.001202, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009379/0.0009379, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9012/0.9012, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.733e-06/1.733e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.129e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008915/0.008937, allocations: 12.4 MB / 337 MB, free: 3.484 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.02459, allocations: 17.92 MB / 354.9 MB, free: 1.496 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.02605, allocations: 134.6 kB / 355 MB, free: 1.363 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.02802, allocations: 1.137 MB / 356.1 MB, free: 224 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004036/0.03206, allocations: 2.428 MB / 358.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002514/0.03457, allocations: 1.437 MB / 360 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005097/0.03967, allocations: 6.773 MB / 366.8 MB, free: 5.531 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003681/0.04004, allocations: 261.8 kB / 367 MB, free: 5.25 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.04136, allocations: 1.566 MB / 368.6 MB, free: 3.68 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006133/0.04197, allocations: 0.7979 MB / 369.4 MB, free: 2.879 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.462e-05/0.04207, allocations: 72 kB / 369.5 MB, free: 2.809 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00165/0.04372, allocations: 1.202 MB / 370.7 MB, free: 1.605 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.04388, allocations: 333.5 kB / 371 MB, free: 1.277 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004864/0.04437, allocations: 0.7437 MB / 371.7 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00274/0.04711, allocations: 3.756 MB / 375.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.04711, allocations: 0 / 375.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.04711, allocations: 0 / 375.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.04714, allocations: 0 / 375.5 MB, free: 12.76 MB / 346.7 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.002791/0.04993, allocations: 3.702 MB / 379.2 MB, free: 9.004 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.04996, allocations: 8.031 kB / 379.2 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.225e-05/0.05006, allocations: 98.52 kB / 379.3 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.05031, allocations: 421.4 kB / 379.7 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/0.05259, allocations: 2.295 MB / 382 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.05261, allocations: 41 kB / 382.1 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.029e-05/0.05269, allocations: 55.88 kB / 382.1 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007974/0.05349, allocations: 0.7343 MB / 382.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.0535, allocations: 0 / 382.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.366e-05/0.05354, allocations: 20 kB / 382.9 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.05356, allocations: 19.98 kB / 382.9 MB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009029/0.05446, allocations: 0.8163 MB / 383.7 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002902/0.05736, allocations: 2.844 MB / 386.5 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006894/0.05805, allocations: 0.5306 MB / 387.1 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005673/0.05862, allocations: 0.565 MB / 387.6 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01484/0.07346, allocations: 13.71 MB / 401.3 MB, free: 2.277 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.07392, allocations: 373.9 kB / 401.7 MB, free: 1.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.104e-06/0.07392, allocations: 0 / 401.7 MB, free: 1.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001284/0.0752, allocations: 1.104 MB / 402.8 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003358/0.07554, allocations: 63.39 kB / 402.9 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002588/0.07813, allocations: 2.954 MB / 405.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.007e-05/0.07817, allocations: 37.69 kB / 405.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009139/0.07908, allocations: 1.491 MB / 407.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.07918, allocations: 170.6 kB / 407.5 MB, free: 12.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001936/0.07937, allocations: 234.3 kB / 407.8 MB, free: 11.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.913e-05/0.07946, allocations: 338 kB / 408.1 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005997/0.08006, allocations: 241.8 kB / 408.3 MB, free: 11.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004908/0.08055, allocations: 0.5978 MB / 408.9 MB, free: 10.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008695/0.08142, allocations: 0.8983 MB / 409.8 MB, free: 9.387 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.08143, allocations: 4 kB / 409.8 MB, free: 9.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001216/0.08265, allocations: 1.248 MB / 411.1 MB, free: 8.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.08266, allocations: 8 kB / 411.1 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.208e-05/0.08272, allocations: 84.03 kB / 411.2 MB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.08275, allocations: 24 kB / 411.2 MB, free: 8.016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000382/0.08313, allocations: 195.7 kB / 411.4 MB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.86e-05/0.08315, allocations: 31.86 kB / 411.4 MB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004616/0.08361, allocations: 107.3 kB / 411.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/0.08368, allocations: 64 kB / 411.6 MB, free: 7.625 MB / 378.7 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.0007193/0.0844, allocations: 438.5 kB / 412 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/0.08461, allocations: 405.4 kB / 412.4 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.08608, allocations: 1.191 MB / 413.6 MB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.08609, allocations: 4 kB / 413.6 MB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.08609, allocations: 4 kB / 413.6 MB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.08609, allocations: 0 / 413.6 MB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.08803, allocations: 2.023 MB / 415.6 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.513e-05/0.08809, allocations: 71.98 kB / 415.7 MB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.08832, allocations: 91.86 kB / 415.8 MB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.08832, allocations: 4 kB / 415.8 MB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/0.08836, allocations: 35.94 kB / 415.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.08836, allocations: 0 / 415.8 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.08836, allocations: 4 kB / 415.8 MB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.08971, allocations: 1.316 MB / 417.1 MB, free: 1.945 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/0.09011, allocations: 423.3 kB / 417.6 MB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.09025, allocations: 12 kB / 417.6 MB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.09059, allocations: 27.95 kB / 417.6 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.0907, allocations: 59.94 kB / 417.6 MB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.09074, allocations: 39.98 kB / 417.7 MB, free: 1.395 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001882/0.09262, allocations: 1.903 MB / 419.6 MB, free: 15.49 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09262, allocations: 0 / 419.6 MB, free: 15.49 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007996/0.09342, allocations: 0.5891 MB / 420.2 MB, free: 14.9 MB / 394.7 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.002217/0.09564, allocations: 2.606 MB / 422.8 MB, free: 12.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009226/0.09656, allocations: 0.776 MB / 423.6 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.09657, allocations: 0 / 423.6 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004355/0.097, allocations: 431.2 kB / 424 MB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.09834, allocations: 0.5997 MB / 424.6 MB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01628/0.1146, allocations: 16.37 MB / 440.9 MB, free: 9.504 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007324/0.1154, allocations: 1.113 MB / 442.1 MB, free: 8.359 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006474/0.116, allocations: 361.1 kB / 442.4 MB, free: 8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008196/0.1168, allocations: 1.215 MB / 443.6 MB, free: 6.785 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1168, allocations: 0 / 443.6 MB, free: 6.785 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2067/0.3235, allocations: 64.26 MB / 0.496 GB, free: 66.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.033/9.356, allocations: 13.69 kB / 0.496 GB, free: 66.36 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/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: 11.523480128496885]