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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 184.6 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002425/0.002425, allocations: 47.92 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.257, allocations: 52.18 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005893/0.2629, allocations: 4.995 MB / 427.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.265, allocations: 1.276 MB / 428.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.2653, allocations: 15.94 kB / 428.9 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.2656, allocations: 126.7 kB / 429.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000444/0.2661, allocations: 261.7 kB / 429.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006402/0.2667, allocations: 311.5 kB / 429.6 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.2678, allocations: 1.099 MB / 430.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003217/0.2681, allocations: 187 kB / 430.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004991/0.2686, allocations: 434.5 kB / 431.3 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005893/0.2692, allocations: 478 kB / 431.8 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.2693, allocations: 88 kB / 431.9 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.2695, allocations: 116 kB / 432 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.2697, allocations: 203.3 kB / 432.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003892/0.2701, allocations: 457.8 kB / 432.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.2711, allocations: 1.031 MB / 433.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2711, allocations: 0 / 433.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2711, allocations: 0 / 433.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.2711, allocations: 0 / 433.7 MB, free: 3.492 MB / 334.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.002436/0.2735, allocations: 1.213 MB / 434.9 MB, free: 2.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.2736, allocations: 12.03 kB / 434.9 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.2737, allocations: 106.7 kB / 435 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.2738, allocations: 92.38 kB / 435.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006701/0.2745, allocations: 434.1 kB / 435.5 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.254e-05/0.2746, allocations: 41.69 kB / 435.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.2747, allocations: 72.36 kB / 435.6 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.276, allocations: 0.6468 MB / 436.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.276, allocations: 4 kB / 436.3 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.217e-05/0.276, allocations: 28 kB / 436.3 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.2761, allocations: 16 kB / 436.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.2777, allocations: 0.6999 MB / 437 MB, free: 52 kB / 334.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.003797/0.2815, allocations: 2.319 MB / 439.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.2828, allocations: 0.5554 MB / 439.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006919/0.2835, allocations: 310 kB / 440.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.2835, allocations: 8.422 kB / 440.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008821/0.2844, allocations: 429.4 kB / 440.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.874e-06/0.2844, allocations: 0 / 440.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06718/0.3516, allocations: 15.23 MB / 455.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.3517, allocations: 145.5 kB / 456 MB, free: 12.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007027/0.3524, allocations: 0.5147 MB / 456.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.3526, allocations: 45.7 kB / 456.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003318/0.3529, allocations: 404.6 kB / 456.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003155/0.3532, allocations: 337.1 kB / 457.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00034/0.3536, allocations: 178.6 kB / 457.4 MB, free: 11.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.3538, allocations: 390.7 kB / 457.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001931/0.3557, allocations: 0.7205 MB / 458.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002098/0.3578, allocations: 0.9551 MB / 459.5 MB, free: 9.148 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003965/0.3618, allocations: 1.697 MB / 461.2 MB, free: 7.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.3618, allocations: 4 kB / 461.2 MB, free: 7.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0232/0.385, allocations: 5.328 MB / 466.5 MB, free: 1.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.967e-05/0.3851, allocations: 71.44 kB / 466.6 MB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.3851, allocations: 4 kB / 466.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03384/0.4189, allocations: 6.841 MB / 473.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007427/0.4197, allocations: 151.7 kB / 473.6 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007005/0.4267, allocations: 3.18 MB / 476.8 MB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/0.4283, allocations: 171.9 kB / 476.9 MB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.4284, allocations: 51.91 kB / 477 MB, free: 7.453 MB / 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.0004711/0.4289, allocations: 221.7 kB / 477.2 MB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.429, allocations: 87.48 kB / 477.3 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02187/0.4509, allocations: 5.06 MB / 482.4 MB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.4509, allocations: 15.98 kB / 482.4 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.4509, allocations: 0 / 482.4 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.039e-05/0.451, allocations: 3.984 kB / 482.4 MB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/0.4525, allocations: 1.08 MB / 483.5 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.4526, allocations: 0 / 483.5 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005093/0.4531, allocations: 95.89 kB / 483.5 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0335/0.4866, allocations: 6.797 MB / 490.3 MB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/0.4867, allocations: 24.23 kB / 490.4 MB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005907/0.4927, allocations: 3.052 MB / 493.4 MB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4927, allocations: 0 / 493.4 MB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02429/0.5169, allocations: 5.948 MB / 499.4 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.5171, allocations: 75.44 kB / 499.4 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.5173, allocations: 19.94 kB / 499.5 MB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.5186, allocations: 171.8 kB / 499.6 MB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.5189, allocations: 96.83 kB / 499.7 MB, free: 0.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.322e-05/0.519, allocations: 31.97 kB / 499.8 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004215/0.5194, allocations: 362.8 kB / 0.4884 GB, free: 160 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5194, allocations: 0 / 0.4884 GB, free: 160 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007299/0.5201, allocations: 260 kB / 0.4886 GB, free: 15.9 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.02548/0.5456, allocations: 6.532 MB / 0.495 GB, free: 9.324 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006768/0.5524, allocations: 2.107 MB / 0.4971 GB, free: 7.195 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.5524, allocations: 448 / 0.4971 GB, free: 7.195 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003457/0.5559, allocations: 1.011 MB / 0.4981 GB, free: 6.184 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007688/0.5566, allocations: 138.4 kB / 0.4982 GB, free: 6.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05572/0.6123, allocations: 15.88 MB / 0.5137 GB, free: 5.836 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/0.6129, allocations: 0.9468 MB / 0.5146 GB, free: 4.859 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003528/0.6133, allocations: 62.27 kB / 0.5147 GB, free: 4.797 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.6137, allocations: 271.3 kB / 0.5149 GB, free: 4.531 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6137, allocations: 0 / 0.5149 GB, free: 4.531 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2601/0.8738, allocations: 30.91 MB / 0.5451 GB, free: 115.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/15, allocations: 4.891 kB / 0.5451 GB, free: 115.2 MB / 446.1 MB " [Timeout remaining time 645] (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 --stepSize=0.0396747 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.702457070117816]