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.001488/0.001489, allocations: 103 kB / 17.21 MB, free: 6.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001937/0.001937, allocations: 209.7 kB / 18.14 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.19 kB / 306.4 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.09844, allocations: 50.54 MB / 356.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.00583/0.1043, allocations: 4.966 MB / 361.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002646/0.107, allocations: 1.311 MB / 363.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006325/0.1076, allocations: 8 kB / 363.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004584/0.1081, allocations: 91.23 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006735/0.1088, allocations: 222.1 kB / 363.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007449/0.1096, allocations: 271.6 kB / 363.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008858/0.1105, allocations: 1.029 MB / 364.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003425/0.1108, allocations: 231.3 kB / 365 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003764/0.1112, allocations: 382.5 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004629/0.1117, allocations: 438.1 kB / 365.8 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1118, allocations: 52 kB / 365.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/0.112, allocations: 75.92 kB / 365.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.1121, allocations: 163.3 kB / 366.1 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003563/0.1125, allocations: 409.8 kB / 366.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007716/0.1133, allocations: 0.9694 MB / 367.5 MB, free: 3.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1133, allocations: 4 kB / 367.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1133, allocations: 4 kB / 367.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1133, allocations: 0 / 367.5 MB, free: 3.738 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.002406/0.1157, allocations: 1.247 MB / 368.7 MB, free: 2.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1158, allocations: 8.031 kB / 368.7 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.1159, allocations: 102.7 kB / 368.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.1161, allocations: 99.81 kB / 368.9 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006198/0.1167, allocations: 483.4 kB / 369.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.1168, allocations: 49.69 kB / 369.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.947e-05/0.1169, allocations: 64.36 kB / 369.5 MB, free: 1.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.1183, allocations: 0.6546 MB / 370.2 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.1183, allocations: 4 kB / 370.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.1184, allocations: 27.94 kB / 370.2 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.1184, allocations: 16 kB / 370.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001677/0.1201, allocations: 0.6999 MB / 370.9 MB, free: 184 kB / 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.1825/0.3027, allocations: 2.365 MB / 373.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.3042, allocations: 0.5894 MB / 373.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007274/0.305, allocations: 335.7 kB / 374.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.505e-05/0.305, allocations: 11.55 kB / 374.2 MB, free: 18.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/0.3061, allocations: 424.7 kB / 374.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.114e-06/0.3062, allocations: 0.5312 kB / 374.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06962/0.3758, allocations: 15.43 MB / 390 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.3759, allocations: 149.2 kB / 390.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006037/0.3765, allocations: 0.5155 MB / 390.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001641/0.3767, allocations: 45.61 kB / 390.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.3769, allocations: 387.2 kB / 391.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.3771, allocations: 317.5 kB / 391.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003163/0.3774, allocations: 185.3 kB / 391.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9e-05/0.3775, allocations: 382.4 kB / 392 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001818/0.3793, allocations: 0.7241 MB / 392.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/0.3811, allocations: 0.9551 MB / 393.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003349/0.3844, allocations: 1.693 MB / 395.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.3845, allocations: 4 kB / 395.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02112/0.4056, allocations: 5.378 MB / 400.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.892e-05/0.4057, allocations: 63.53 kB / 400.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.4057, allocations: 12 kB / 400.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03184/0.4376, allocations: 6.836 MB / 407.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006874/0.4383, allocations: 151.7 kB / 407.8 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006586/0.4449, allocations: 3.162 MB / 411 MB, free: 8.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.4465, allocations: 183.8 kB / 411.1 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.4466, allocations: 51.97 kB / 411.2 MB, free: 8.617 MB / 318.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.0004149/0.4471, allocations: 222.9 kB / 411.4 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.4472, allocations: 83.06 kB / 411.5 MB, free: 8.309 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02176/0.469, allocations: 5.116 MB / 416.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.469, allocations: 8 kB / 416.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.4691, allocations: 0 / 416.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.4691, allocations: 3.984 kB / 416.6 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.4707, allocations: 1.103 MB / 417.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4707, allocations: 3.938 kB / 417.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005025/0.4712, allocations: 91.88 kB / 417.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0322/0.5034, allocations: 6.816 MB / 424.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/0.5036, allocations: 23.92 kB / 424.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005645/0.5093, allocations: 3.036 MB / 427.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.5093, allocations: 3.938 kB / 427.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02389/0.5332, allocations: 5.993 MB / 433.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.5334, allocations: 140.2 kB / 433.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001975/0.5336, allocations: 20 kB / 433.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.535, allocations: 175.8 kB / 434 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/0.5353, allocations: 99.48 kB / 434.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-05/0.5354, allocations: 31.97 kB / 434.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003815/0.5358, allocations: 354.8 kB / 434.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5358, allocations: 0 / 434.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007282/0.5365, allocations: 256 kB / 434.7 MB, free: 0.9297 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.0243/0.5608, allocations: 6.574 MB / 441.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006744/0.5676, allocations: 2.169 MB / 443.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.5676, allocations: 0 / 443.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003372/0.571, allocations: 1.084 MB / 444.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007978/0.5718, allocations: 134.1 kB / 444.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05392/0.6258, allocations: 16.53 MB / 461.2 MB, free: 6.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/0.6263, allocations: 0.9507 MB / 462.2 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003888/0.6267, allocations: 62.25 kB / 462.2 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.627, allocations: 271.3 kB / 462.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.627, allocations: 0 / 462.5 MB, free: 4.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05242/0.6794, allocations: 27.36 MB / 489.9 MB, free: 9.668 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.6797, allocations: 230.8 kB / 490.1 MB, free: 9.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.655/3.334, allocations: 0 / 490.1 MB, free: 9.418 MB / 398.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.0.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