Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 107.7 kB / 16.92 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002144/0.002144, allocations: 192.7 kB / 17.85 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.654/1.654, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 48.52 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1311, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007911/0.139, allocations: 4.942 MB / 355.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003429/0.1425, allocations: 1.268 MB / 356.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007514/0.1433, allocations: 8 kB / 356.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005587/0.1439, allocations: 130.7 kB / 356.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009856/0.1449, allocations: 245.7 kB / 356.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009749/0.1459, allocations: 315.4 kB / 357.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.1472, allocations: 1.091 MB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004543/0.1477, allocations: 270.5 kB / 358.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005424/0.1482, allocations: 414.5 kB / 358.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006569/0.1489, allocations: 466 kB / 359.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.1491, allocations: 88 kB / 359.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002809/0.1493, allocations: 108 kB / 359.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002054/0.1496, allocations: 199.3 kB / 359.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005441/0.1501, allocations: 445.8 kB / 360.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.1515, allocations: 0.9968 MB / 361.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.1515, allocations: 3.984 kB / 361.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.147e-06/0.1516, allocations: 4 kB / 361.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.1516, allocations: 0 / 361.1 MB, free: 9.316 MB / 302.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.003145/0.1547, allocations: 1.253 MB / 362.3 MB, free: 8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.142e-05/0.1548, allocations: 12.03 kB / 362.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001624/0.155, allocations: 110.6 kB / 362.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.1552, allocations: 95.81 kB / 362.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.156, allocations: 483.4 kB / 363 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.743e-05/0.156, allocations: 45.69 kB / 363.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.1562, allocations: 64.38 kB / 363.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.1576, allocations: 0.6546 MB / 363.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.1576, allocations: 0 / 363.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.261e-05/0.1577, allocations: 28 kB / 363.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.095e-05/0.1577, allocations: 16 kB / 363.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/0.1595, allocations: 0.6961 MB / 364.5 MB, free: 5.758 MB / 302.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.00479/0.1643, allocations: 2.39 MB / 366.9 MB, free: 3.211 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.1658, allocations: 0.5821 MB / 367.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007525/0.1666, allocations: 334 kB / 367.8 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.843e-05/0.1666, allocations: 8.422 kB / 367.8 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/0.1677, allocations: 432 kB / 368.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.425e-06/0.1677, allocations: 0 / 368.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3037/0.4714, allocations: 15.42 MB / 383.7 MB, free: 22.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.4716, allocations: 141.3 kB / 383.8 MB, free: 22.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009769/0.4726, allocations: 0.5118 MB / 384.3 MB, free: 22.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002441/0.4729, allocations: 46.61 kB / 384.4 MB, free: 22.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003247/0.4732, allocations: 390.3 kB / 384.8 MB, free: 21.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/0.4735, allocations: 314 kB / 385.1 MB, free: 21.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004167/0.4739, allocations: 189.3 kB / 385.2 MB, free: 21.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4741, allocations: 391.2 kB / 385.6 MB, free: 20.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001973/0.476, allocations: 0.7195 MB / 386.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/0.4782, allocations: 0.9552 MB / 387.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004016/0.4822, allocations: 1.694 MB / 389 MB, free: 18.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.4822, allocations: 2.031 kB / 389 MB, free: 18.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02032/0.5026, allocations: 5.382 MB / 394.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.24e-05/0.5027, allocations: 59.41 kB / 394.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/0.5027, allocations: 15.17 kB / 394.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02964/0.5324, allocations: 6.852 MB / 401.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.5331, allocations: 147.7 kB / 401.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/0.5388, allocations: 3.16 MB / 404.6 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.5406, allocations: 175.8 kB / 404.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.5407, allocations: 52.83 kB / 404.8 MB, free: 3.516 MB / 302.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.0005437/0.5413, allocations: 229.6 kB / 405.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.5415, allocations: 79.06 kB / 405.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0205/0.562, allocations: 5.113 MB / 410.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/0.562, allocations: 8 kB / 410.3 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.5621, allocations: 0 / 410.3 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.917e-05/0.5621, allocations: 3.984 kB / 410.3 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.5638, allocations: 1.107 MB / 411.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5638, allocations: 0 / 411.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.5643, allocations: 91.88 kB / 411.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03236/0.5967, allocations: 6.805 MB / 418.3 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/0.597, allocations: 23.97 kB / 418.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005829/0.6028, allocations: 3.043 MB / 421.3 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.6029, allocations: 7.938 kB / 421.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02397/0.6268, allocations: 5.992 MB / 427.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004219/0.6273, allocations: 144.1 kB / 427.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001907/0.6275, allocations: 19.98 kB / 427.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.6289, allocations: 167.9 kB / 427.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/0.6292, allocations: 104.4 kB / 427.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.114e-05/0.6293, allocations: 27.98 kB / 427.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004211/0.6297, allocations: 358.8 kB / 428.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6297, allocations: 0 / 428.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007273/0.6305, allocations: 256 kB / 428.4 MB, free: 11.82 MB / 334.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.02475/0.6552, allocations: 6.574 MB / 435 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007311/0.6626, allocations: 2.196 MB / 437.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.6626, allocations: 0 / 437.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003563/0.6662, allocations: 1.092 MB / 438.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.6673, allocations: 131.2 kB / 438.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05781/0.7252, allocations: 16.19 MB / 454.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006819/0.7259, allocations: 0.9507 MB / 455.5 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004236/0.7263, allocations: 61.41 kB / 455.6 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004213/0.7268, allocations: 275.4 kB / 455.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.7268, allocations: 0 / 455.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.256/1.983, allocations: 29.2 MB / 485 MB, free: 3.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/15.32, allocations: 6.984 kB / 485.1 MB, free: 3.02 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches