Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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.001381/0.001381, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001596/0.001596, allocations: 214.4 kB / 23.73 MB, free: 4.156 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.575/1.575, allocations: 230.6 MB / 257.5 MB, free: 7.816 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: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 59.98 kB / 378.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2493, allocations: 53.36 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006464/0.2558, allocations: 4.429 MB / 436 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002588/0.2584, allocations: 1.245 MB / 437.3 MB, free: 1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.2587, allocations: 15.94 kB / 437.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.259, allocations: 126.7 kB / 437.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004882/0.2594, allocations: 261.7 kB / 437.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006896/0.2601, allocations: 311.5 kB / 438 MB, free: 304 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.2613, allocations: 1.095 MB / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003378/0.2617, allocations: 182.7 kB / 439.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005229/0.2622, allocations: 438.5 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005691/0.2628, allocations: 418.1 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.2629, allocations: 95.94 kB / 440.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.2631, allocations: 116 kB / 440.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/0.2633, allocations: 199.3 kB / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003977/0.2637, allocations: 378.3 kB / 440.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.2648, allocations: 1.045 MB / 441.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2648, allocations: 0 / 441.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2648, allocations: 0 / 441.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.2648, allocations: 0 / 441.9 MB, free: 12.35 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002569/0.2674, allocations: 1.202 MB / 443.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.2674, allocations: 16.03 kB / 443.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.2676, allocations: 96.33 kB / 443.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007527/0.2684, allocations: 434 kB / 443.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-05/0.2684, allocations: 49.67 kB / 443.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.2685, allocations: 68.33 kB / 443.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.2701, allocations: 0.7803 MB / 444.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.2701, allocations: 3.984 kB / 444.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.881e-05/0.2702, allocations: 31.98 kB / 444.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.2702, allocations: 16 kB / 444.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.2719, allocations: 0.6921 MB / 445.3 MB, free: 8.867 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003845/0.2758, allocations: 1.792 MB / 447.1 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/0.2774, allocations: 0.5553 MB / 447.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007805/0.2781, allocations: 309.9 kB / 447.9 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.653e-05/0.2782, allocations: 8.438 kB / 447.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.2792, allocations: 0.5371 MB / 448.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.505e-06/0.2792, allocations: 4 kB / 448.5 MB, free: 5.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07107/0.3503, allocations: 15.26 MB / 463.7 MB, free: 6.207 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.3504, allocations: 145.5 kB / 463.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007212/0.3511, allocations: 0.5145 MB / 464.4 MB, free: 5.508 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.3513, allocations: 49.7 kB / 464.4 MB, free: 5.453 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003398/0.3517, allocations: 400.6 kB / 464.8 MB, free: 5.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003474/0.352, allocations: 321.2 kB / 465.1 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003949/0.3524, allocations: 194.5 kB / 465.3 MB, free: 4.543 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.3526, allocations: 382.8 kB / 465.7 MB, free: 4.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/0.3548, allocations: 0.7784 MB / 466.5 MB, free: 3.367 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002401/0.3572, allocations: 1.092 MB / 467.6 MB, free: 2.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00431/0.3615, allocations: 1.697 MB / 469.3 MB, free: 372 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.3615, allocations: 3.938 kB / 469.3 MB, free: 368 kB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02364/0.3852, allocations: 5.405 MB / 474.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.3853, allocations: 63.34 kB / 474.7 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.851e-05/0.3853, allocations: 16.11 kB / 474.8 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03485/0.4201, allocations: 6.845 MB / 481.6 MB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007818/0.4209, allocations: 147.7 kB / 481.7 MB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007623/0.4285, allocations: 3.153 MB / 484.9 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.4303, allocations: 183.8 kB / 485.1 MB, free: 440 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001676/0.4305, allocations: 47.97 kB / 485.1 MB, free: 392 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005013/0.431, allocations: 235.3 kB / 485.4 MB, free: 148 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.4312, allocations: 83.73 kB / 485.4 MB, free: 64 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02264/0.4538, allocations: 5.079 MB / 490.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-05/0.4539, allocations: 12 kB / 490.5 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.4539, allocations: 0 / 490.5 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.481e-05/0.4539, allocations: 3.984 kB / 490.5 MB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001746/0.4556, allocations: 0.7607 MB / 491.3 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.335e-05/0.4557, allocations: 0 / 491.3 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006018/0.4563, allocations: 99.88 kB / 491.4 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03376/0.49, allocations: 6.781 MB / 498.2 MB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/0.4902, allocations: 27.97 kB / 498.2 MB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006209/0.4964, allocations: 3.049 MB / 0.4895 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.4964, allocations: 0 / 0.4895 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02463/0.5211, allocations: 5.948 MB / 0.4953 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.5213, allocations: 71.5 kB / 0.4954 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002525/0.5216, allocations: 23.94 kB / 0.4954 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/0.5231, allocations: 175.8 kB / 0.4956 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002988/0.5234, allocations: 96.83 kB / 0.4957 GB, free: 9.789 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.5235, allocations: 32.23 kB / 0.4957 GB, free: 9.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005025/0.524, allocations: 346.8 kB / 0.496 GB, free: 9.422 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.524, allocations: 0 / 0.496 GB, free: 9.422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009077/0.5249, allocations: 259.9 kB / 0.4963 GB, free: 9.168 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003164/0.5252, allocations: 143.1 kB / 0.4964 GB, free: 9.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007236/0.5324, allocations: 2.156 MB / 0.4985 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.5324, allocations: 0 / 0.4985 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003649/0.5361, allocations: 1.016 MB / 0.4995 GB, free: 5.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.5372, allocations: 126.1 kB / 0.4996 GB, free: 5.691 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004321/0.5415, allocations: 1.791 MB / 0.5014 GB, free: 3.875 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.5419, allocations: 357.6 kB / 0.5017 GB, free: 3.492 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002937/0.5422, allocations: 58.22 kB / 0.5018 GB, free: 3.434 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.5423, allocations: 35.44 kB / 0.5018 GB, free: 3.398 MB / 414.1 MB Notification: Performance of SimCode: time 1.352e-06/0.5423, allocations: 7.938 kB / 0.5018 GB, free: 3.391 MB / 414.1 MB Notification: Performance of Templates: time 0.03284/0.5751, allocations: 19.97 MB / 0.5213 GB, free: 15.54 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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: 6.00439615920186]