Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001448/0.001448, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002689/0.002689, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003082/0.003082, allocations: 59.91 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2842, allocations: 50.55 MB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006131/0.2904, allocations: 4.968 MB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.2928, allocations: 1.295 MB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.2931, allocations: 12 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003253/0.2934, allocations: 122.7 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005606/0.294, allocations: 249.7 kB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007529/0.2948, allocations: 319.4 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.2961, allocations: 1.099 MB / 416.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004315/0.2965, allocations: 266.5 kB / 417.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005872/0.2971, allocations: 410.5 kB / 417.6 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006052/0.2977, allocations: 470 kB / 418 MB, free: 8.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.2979, allocations: 88 kB / 418.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002346/0.2981, allocations: 112 kB / 418.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.2983, allocations: 195.3 kB / 418.4 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004705/0.2988, allocations: 445.8 kB / 418.8 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001126/0.2999, allocations: 1.014 MB / 419.9 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.3, allocations: 4 kB / 419.9 MB, free: 6.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3, allocations: 3.938 kB / 419.9 MB, free: 6.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.3, allocations: 0 / 419.9 MB, free: 6.367 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.002547/0.3025, allocations: 1.269 MB / 421.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3026, allocations: 8.031 kB / 421.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.3027, allocations: 106.7 kB / 421.2 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.3029, allocations: 104.3 kB / 421.3 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007396/0.3037, allocations: 499.9 kB / 421.8 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.3037, allocations: 45.69 kB / 421.9 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.3038, allocations: 68.33 kB / 421.9 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.3054, allocations: 0.6585 MB / 422.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.3054, allocations: 7.938 kB / 422.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.463e-05/0.3055, allocations: 24 kB / 422.6 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.3055, allocations: 16 kB / 422.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.3073, allocations: 0.6961 MB / 423.3 MB, free: 2.762 MB / 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.004198/0.3115, allocations: 2.363 MB / 425.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001583/0.3131, allocations: 0.5933 MB / 426.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000777/0.3139, allocations: 337.9 kB / 426.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.144e-05/0.3139, allocations: 12.38 kB / 426.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.315, allocations: 421.4 kB / 427.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 4.88e-06/0.315, allocations: 0 / 427.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06956/0.3846, allocations: 15.44 MB / 442.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.3848, allocations: 141.5 kB / 442.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008083/0.3856, allocations: 0.5147 MB / 443.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/0.3858, allocations: 57.69 kB / 443.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000343/0.3862, allocations: 384.7 kB / 443.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003367/0.3865, allocations: 333.2 kB / 443.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003801/0.3869, allocations: 182.6 kB / 444.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002153/0.3871, allocations: 394.7 kB / 444.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002218/0.3894, allocations: 0.7166 MB / 445.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002264/0.3916, allocations: 0.959 MB / 446.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004264/0.3959, allocations: 1.701 MB / 447.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.639e-05/0.3959, allocations: 4 kB / 447.8 MB, free: 9.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02391/0.4199, allocations: 5.386 MB / 453.2 MB, free: 4.301 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.595e-05/0.42, allocations: 59.41 kB / 453.3 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.42, allocations: 8 kB / 453.3 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03454/0.4546, allocations: 6.84 MB / 460.1 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007537/0.4554, allocations: 151.7 kB / 460.3 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007281/0.4627, allocations: 3.161 MB / 463.4 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/0.4644, allocations: 179.8 kB / 463.6 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.4646, allocations: 51.92 kB / 463.7 MB, free: 9.777 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.0004511/0.4651, allocations: 229.6 kB / 463.9 MB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.4652, allocations: 83.48 kB / 464 MB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/0.4877, allocations: 5.119 MB / 469.1 MB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/0.4878, allocations: 8 kB / 469.1 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.4878, allocations: 0 / 469.1 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.52e-05/0.4878, allocations: 7.984 kB / 469.1 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.4894, allocations: 1.1 MB / 470.2 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4895, allocations: 0 / 470.2 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005404/0.49, allocations: 95.92 kB / 470.3 MB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03433/0.5243, allocations: 6.797 MB / 477.1 MB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002296/0.5246, allocations: 23.97 kB / 477.1 MB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006181/0.5308, allocations: 3.041 MB / 480.2 MB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.5308, allocations: 3.938 kB / 480.2 MB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02464/0.5555, allocations: 5.999 MB / 486.2 MB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002573/0.5558, allocations: 152.5 kB / 486.3 MB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.556, allocations: 16 kB / 486.3 MB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.5574, allocations: 171.8 kB / 486.5 MB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/0.5576, allocations: 96.81 kB / 486.6 MB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.685e-05/0.5577, allocations: 35.97 kB / 486.6 MB, free: 2.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004271/0.5582, allocations: 354.8 kB / 487 MB, free: 2.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5582, allocations: 0 / 487 MB, free: 2.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007184/0.5589, allocations: 256 kB / 487.2 MB, free: 2.02 MB / 398.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.02552/0.5844, allocations: 6.582 MB / 493.8 MB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007091/0.5916, allocations: 2.181 MB / 496 MB, free: 9.191 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.5916, allocations: 0 / 496 MB, free: 9.191 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003633/0.5952, allocations: 1.089 MB / 497.1 MB, free: 8.102 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007618/0.596, allocations: 138.2 kB / 497.2 MB, free: 7.965 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05544/0.6515, allocations: 15.97 MB / 0.5012 GB, free: 7.668 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/0.6521, allocations: 0.9468 MB / 0.5021 GB, free: 6.695 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003214/0.6524, allocations: 62.27 kB / 0.5021 GB, free: 6.633 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/0.6528, allocations: 271.3 kB / 0.5024 GB, free: 6.367 MB / 430.1 MB Notification: Performance of SimCode: time 9.01e-07/0.6528, allocations: 0 / 0.5024 GB, free: 6.367 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06347/0.7163, allocations: 29.57 MB / 0.5313 GB, free: 9.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/14.28, allocations: 14.19 kB / 0.5313 GB, free: 9.012 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches