Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001559/0.001559, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.112/2.112, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001111, allocations: 74.72 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.294e-05/3.311e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09187, allocations: 47.57 MB / 369.1 MB, free: 2.227 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4004/0.4923, allocations: 81.07 MB / 450.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.4926, allocations: 71.56 kB / 450.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0577/0.5504, allocations: 12.12 MB / 462.3 MB, free: 1.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5504, allocations: 3.938 kB / 462.3 MB, free: 1.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.833e-05/0.5505, allocations: 16 kB / 462.4 MB, free: 1.754 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.003852/0.5543, allocations: 1.04 MB / 463.4 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.5544, allocations: 12.03 kB / 463.4 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000385/0.5548, allocations: 94.95 kB / 463.5 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.5562, allocations: 497.4 kB / 464 MB, free: 144 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.112e-05/0.5563, allocations: 44.5 kB / 464 MB, free: 120 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/0.5565, allocations: 65.05 kB / 464.1 MB, free: 64 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.5581, allocations: 0.5493 MB / 464.6 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.5582, allocations: 4 kB / 464.6 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.5583, allocations: 24 kB / 464.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.607e-05/0.5584, allocations: 16 kB / 464.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.56, allocations: 0.5207 MB / 465.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006522/0.5665, allocations: 2.294 MB / 467.5 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.5679, allocations: 464.9 kB / 468 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000687/0.5686, allocations: 259.5 kB / 468.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.843e-05/0.5687, allocations: 16.41 kB / 468.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008972/0.5696, allocations: 341.7 kB / 468.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 3.046e-06/0.5696, allocations: 0 / 468.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.138/0.7076, allocations: 13.48 MB / 482 MB, free: 13.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.7077, allocations: 149.3 kB / 482.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008319/0.7086, allocations: 420.8 kB / 482.6 MB, free: 13.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000249/0.7089, allocations: 53.69 kB / 482.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/0.7092, allocations: 394.4 kB / 483 MB, free: 12.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003958/0.7096, allocations: 311.5 kB / 483.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.7098, allocations: 16 kB / 483.4 MB, free: 12.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.7099, allocations: 350.8 kB / 483.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.7114, allocations: 474 kB / 484.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.713, allocations: 0.6691 MB / 484.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.7145, allocations: 0.5431 MB / 485.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.7146, allocations: 7.938 kB / 485.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.03843/0.753, allocations: 4.778 MB / 490.2 MB, free: 5.574 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.903e-05/0.7532, allocations: 63.41 kB / 490.2 MB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.7532, allocations: 4 kB / 490.2 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06271/0.8159, allocations: 6.946 MB / 497.2 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.8173, allocations: 175.7 kB / 497.3 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009252/0.8266, allocations: 2.821 MB / 0.4884 GB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/0.8297, allocations: 231.7 kB / 0.4887 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/0.83, allocations: 51.92 kB / 0.4887 GB, free: 11.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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.0004001/0.8304, allocations: 156.9 kB / 0.4889 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002357/0.8306, allocations: 71.16 kB / 0.4889 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03785/0.8685, allocations: 4.681 MB / 0.4935 GB, free: 6.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.252e-05/0.8686, allocations: 11.94 kB / 0.4935 GB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.8686, allocations: 4 kB / 0.4935 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-05/0.8686, allocations: 7.969 kB / 0.4935 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/0.871, allocations: 1.11 MB / 0.4946 GB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.871, allocations: 0 / 0.4946 GB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.8721, allocations: 127.9 kB / 0.4947 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06588/0.938, allocations: 6.891 MB / 0.5015 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002901/0.9383, allocations: 27.97 kB / 0.5015 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009169/0.9475, allocations: 2.852 MB / 0.5043 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.9475, allocations: 0 / 0.5043 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03992/0.9875, allocations: 5.306 MB / 0.5094 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002758/0.9878, allocations: 140.3 kB / 0.5096 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/0.9881, allocations: 28.02 kB / 0.5096 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002714/0.9908, allocations: 207.8 kB / 0.5098 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004375/0.9912, allocations: 100.6 kB / 0.5099 GB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.9914, allocations: 35.97 kB / 0.5099 GB, free: 5.266 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005941/0.992, allocations: 329.5 kB / 0.5103 GB, free: 4.945 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.992, allocations: 0 / 0.5103 GB, free: 4.945 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001142/0.9932, allocations: 268 kB / 0.5105 GB, free: 4.684 MB / 394.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) * 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.0003928/0.9936, allocations: 148.2 kB / 0.5106 GB, free: 4.531 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007829/1.001, allocations: 1.656 MB / 0.5123 GB, free: 2.844 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.001, allocations: 0 / 0.5123 GB, free: 2.844 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005944/1.007, allocations: 0.9629 MB / 0.5132 GB, free: 1.887 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/1.009, allocations: 114.8 kB / 0.5133 GB, free: 1.773 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004313/1.013, allocations: 1.225 MB / 0.5145 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/1.014, allocations: 0.9587 MB / 0.5154 GB, free: 15.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003013/1.014, allocations: 35.44 kB / 0.5155 GB, free: 15.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/1.014, allocations: 0 / 0.5155 GB, free: 15.49 MB / 410.7 MB Notification: Performance of Templates: time 0.2857/1.3, allocations: 16.17 MB / 0.5313 GB, free: 133.2 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches