Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 194.7 kB / 18.07 MB, free: 3.758 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 226.5 MB / 245.4 MB, free: 8.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007361/0.0007361, allocations: 97.88 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002226/0.0002226, allocations: 4 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1845, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0902/0.2748, allocations: 83.82 MB / 492.5 MB, free: 7.789 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.275, allocations: 73.22 kB / 492.5 MB, free: 7.719 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0343/0.3093, allocations: 12.78 MB / 0.4935 GB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3093, allocations: 0 / 0.4935 GB, free: 10.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.637e-05/0.3094, allocations: 19.98 kB / 0.4935 GB, free: 10.87 MB / 378.7 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.002457/0.3119, allocations: 1.147 MB / 0.4946 GB, free: 9.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3119, allocations: 11.97 kB / 0.4946 GB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.3121, allocations: 103.8 kB / 0.4947 GB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008769/0.313, allocations: 0.5239 MB / 0.4952 GB, free: 8.977 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/0.3131, allocations: 53.67 kB / 0.4953 GB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.3132, allocations: 64.38 kB / 0.4954 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3146, allocations: 0.6746 MB / 0.496 GB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3146, allocations: 192 / 0.496 GB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.839e-05/0.3147, allocations: 31.94 kB / 0.496 GB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.3147, allocations: 12 kB / 0.4961 GB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.3164, allocations: 0.7585 MB / 0.4968 GB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004027/0.3205, allocations: 2.333 MB / 0.4991 GB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.3219, allocations: 0.6435 MB / 0.4997 GB, free: 4.262 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007336/0.3226, allocations: 361.9 kB / 0.5 GB, free: 3.902 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.991e-05/0.3227, allocations: 8.438 kB / 0.5001 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009213/0.3236, allocations: 453.4 kB / 0.5005 GB, free: 3.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.665e-06/0.3237, allocations: 0 / 0.5005 GB, free: 3.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.2152/0.5388, allocations: 16.54 MB / 0.5166 GB, free: 91.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.5389, allocations: 146.7 kB / 0.5168 GB, free: 91.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005048/0.5394, allocations: 0.5105 MB / 0.5173 GB, free: 91.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001426/0.5396, allocations: 47.7 kB / 0.5173 GB, free: 91.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.5397, allocations: 391 kB / 0.5177 GB, free: 90.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.5399, allocations: 313.9 kB / 0.518 GB, free: 90.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.889e-05/0.54, allocations: 24.8 kB / 0.518 GB, free: 90.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.652e-05/0.5401, allocations: 389 kB / 0.5184 GB, free: 90.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/0.5418, allocations: 0.7875 MB / 0.5192 GB, free: 90.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/0.5436, allocations: 1.028 MB / 0.5202 GB, free: 89.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003356/0.547, allocations: 1.844 MB / 0.522 GB, free: 87.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.547, allocations: 0 / 0.522 GB, free: 87.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02014/0.5671, allocations: 5.632 MB / 0.5275 GB, free: 82.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.801e-05/0.5672, allocations: 67.41 kB / 0.5275 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.5672, allocations: 4 kB / 0.5275 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03071/0.5979, allocations: 7.324 MB / 0.5347 GB, free: 74.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.5986, allocations: 183.7 kB / 0.5349 GB, free: 74.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00481/0.6034, allocations: 3.069 MB / 0.5379 GB, free: 71.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.605, allocations: 234.5 kB / 0.5381 GB, free: 71.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.6051, allocations: 47.97 kB / 0.5381 GB, free: 71.3 MB / 378.7 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003627/0.6055, allocations: 221.6 kB / 0.5383 GB, free: 71.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.6056, allocations: 79.06 kB / 0.5384 GB, free: 71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01981/0.6254, allocations: 5.467 MB / 0.5438 GB, free: 65.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.6254, allocations: 8 kB / 0.5438 GB, free: 65.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.6254, allocations: 4 kB / 0.5438 GB, free: 65.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-05/0.6255, allocations: 7.969 kB / 0.5438 GB, free: 65.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.6267, allocations: 1.11 MB / 0.5449 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.6267, allocations: 0.6562 kB / 0.5449 GB, free: 64.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004934/0.6272, allocations: 120.8 kB / 0.545 GB, free: 64.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02909/0.6563, allocations: 7.305 MB / 0.5521 GB, free: 56.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002019/0.6566, allocations: 23.98 kB / 0.5521 GB, free: 56.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005505/0.6621, allocations: 3.216 MB / 0.5553 GB, free: 53.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.6621, allocations: 4.547 kB / 0.5553 GB, free: 53.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02126/0.6834, allocations: 6.43 MB / 0.5616 GB, free: 47.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001896/0.6836, allocations: 153.6 kB / 0.5617 GB, free: 47.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.6837, allocations: 19.98 kB / 0.5617 GB, free: 47.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.685, allocations: 207.8 kB / 0.5619 GB, free: 46.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.6852, allocations: 104.8 kB / 0.562 GB, free: 46.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-05/0.6853, allocations: 35.97 kB / 0.5621 GB, free: 46.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003212/0.6856, allocations: 342.9 kB / 0.5624 GB, free: 46.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6856, allocations: 0 / 0.5624 GB, free: 46.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006647/0.6863, allocations: 270.7 kB / 0.5626 GB, free: 46.07 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.000235/0.6866, allocations: 156.5 kB / 0.5628 GB, free: 45.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00497/0.6915, allocations: 2.181 MB / 0.5649 GB, free: 43.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.6916, allocations: 4.062 kB / 0.5649 GB, free: 43.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003782/0.6953, allocations: 1.293 MB / 0.5662 GB, free: 42.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007075/0.6961, allocations: 120.5 kB / 0.5663 GB, free: 42.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002997/0.6991, allocations: 2.137 MB / 0.5684 GB, free: 40.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.6993, allocations: 0.9509 MB / 0.5693 GB, free: 39.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.6995, allocations: 35.44 kB / 0.5693 GB, free: 39.13 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.6995, allocations: 4 kB / 0.5694 GB, free: 39.12 MB / 378.7 MB Notification: Performance of Templates: time 0.01485/0.7144, allocations: 17.29 MB / 0.5862 GB, free: 21.92 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches