Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0004125/0.0004125, allocations: 0 / 0, free: 0 / 0 " [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.0005354/0.0005354, allocations: 0 / 0, free: 0 / 0 " [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.4242/0.4242, allocations: 0 / 0, free: 0 / 0 " [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: simulate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=5002,outputFormat="mat",variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel",simflags="-alarm=480 -emit_protected -lv LOG_STATS") simulate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,startTime=0,stopTime=5,tolerance=1e-06,numberOfIntervals=5002,outputFormat="mat",variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel",simflags="-alarm=480 -emit_protected -lv LOG_STATS") [Timeout 1140] "Notification: Performance of FrontEnd - loaded program: time 9.12e-07/9.12e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 3.627e-05/3.718e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0345/0.03453, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.05629/0.09082, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.005633/0.09646, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0127/0.1092, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.02069/0.1298, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.01323/0.1431, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.02445/0.1675, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.1691, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.005893/0.175, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.003078/0.1781, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0004148/0.1785, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.01398/0.1925, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.001154/0.1936, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.00332/0.197, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.01671/0.2137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.001188/0.2148, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 5.441e-06/0.2149, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 9.47e-05/0.2149, allocations: 0 / 0, free: 0 / 0 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.01918/0.2341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0004353/0.2346, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002067/0.2366, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.2488, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.2489, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004579/0.2494, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.005365/0.2548, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 4.171e-05/0.2548, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003037/0.2551, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.455e-05/0.2552, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005946/0.2611, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02125/0.2824, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.003238/0.2856, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.003098/0.2887, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.07748/0.3662, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002275/0.3685, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=49): time 0.0002954/0.3688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=49): time 0.007648/0.3764, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3765, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01643/0.3929, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0003016/0.3932, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.005072/0.3983, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0004397/0.3988, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001357/0.4001, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0004347/0.4006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001895/0.4024, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.002358/0.4048, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004096/0.4089, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-05/0.4089, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=110) (initialization): time 0.00757/0.4165, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 7.434e-05/0.4166, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004395/0.417, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 7.488e-05/0.4171, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/0.4187, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-05/0.4188, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/0.4213, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003846/0.4217, allocations: 0 / 0, free: 0 / 0 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.003802/0.4255, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001709/0.4272, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007935/0.4352, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/0.4352, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.4352, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.4352, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/0.4507, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003929/0.4511, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.4521, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.4521, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002984/0.4524, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.444e-05/0.4524, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.4525, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007741/0.4602, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.005445/0.4656, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002155/0.4678, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002125/0.4699, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009775/0.4709, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003197/0.4712, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.009798/0.481, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 0.0003106/0.4813, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.005042/0.4864, allocations: 0 / 0, free: 0 / 0 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.004626/0.491, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.004601/0.4956, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.4956, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.00237/0.498, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01145/0.5094, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02744/0.5369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004315/0.5412, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.00197/0.5431, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001579/0.5447, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.001429/0.5462, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.01057/0.5567, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 1139] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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: 1.7556268340013048]