Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002009/0.002009, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 226.5 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008284/0.0008285, allocations: 109.6 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002063/0.0002064, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1974, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003481/0.201, allocations: 4.291 MB / 411.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.2032, allocations: 1.251 MB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005768/0.2038, allocations: 11.94 kB / 413 MB, free: 22.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003513/0.2042, allocations: 90.05 kB / 413.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006223/0.2048, allocations: 224.5 kB / 413.3 MB, free: 21.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006609/0.2055, allocations: 223.7 kB / 413.6 MB, free: 21.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008912/0.2064, allocations: 0.978 MB / 414.5 MB, free: 20.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.2067, allocations: 199.7 kB / 414.7 MB, free: 20.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.207, allocations: 358.6 kB / 415.1 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003445/0.2073, allocations: 410.3 kB / 415.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.928e-05/0.2074, allocations: 48 kB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.2076, allocations: 71.95 kB / 415.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-05/0.2076, allocations: 155.3 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.2078, allocations: 169.3 kB / 415.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004435/0.2082, allocations: 0.7411 MB / 416.7 MB, free: 18.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2082, allocations: 0 / 416.7 MB, free: 18.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2082, allocations: 0 / 416.7 MB, free: 18.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.2083, allocations: 0 / 416.7 MB, free: 18.63 MB / 298.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.001871/0.2101, allocations: 1.149 MB / 417.8 MB, free: 17.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.2102, allocations: 8.031 kB / 417.8 MB, free: 17.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.2103, allocations: 94.95 kB / 417.9 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.2107, allocations: 462.6 kB / 418.4 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.2108, allocations: 53.3 kB / 418.4 MB, free: 16.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.234e-05/0.2109, allocations: 64 kB / 418.5 MB, free: 16.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.212, allocations: 0.6779 MB / 419.2 MB, free: 16.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.2121, allocations: 0 / 419.2 MB, free: 16.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.2121, allocations: 24 kB / 419.2 MB, free: 16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.2121, allocations: 16 kB / 419.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.2136, allocations: 0.7585 MB / 420 MB, free: 15.22 MB / 298.7 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.003035/0.2167, allocations: 2.433 MB / 422.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.218, allocations: 0.6334 MB / 423 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006576/0.2187, allocations: 365.9 kB / 423.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.2187, allocations: 8.438 kB / 423.4 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008251/0.2195, allocations: 453.4 kB / 423.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 1.983e-06/0.2195, allocations: 0 / 423.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06693/0.2865, allocations: 16.75 MB / 440.6 MB, free: 10.31 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.02e-05/0.2866, allocations: 141.5 kB / 440.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006734/0.2873, allocations: 0.5223 MB / 441.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002038/0.2875, allocations: 57.58 kB / 441.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.2878, allocations: 379.8 kB / 441.7 MB, free: 9.172 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/0.2882, allocations: 315.5 kB / 442 MB, free: 8.859 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.083e-05/0.2883, allocations: 20 kB / 442 MB, free: 8.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2884, allocations: 382.8 kB / 442.4 MB, free: 8.457 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.2906, allocations: 0.7986 MB / 443.2 MB, free: 7.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/0.2928, allocations: 1.022 MB / 444.2 MB, free: 6.547 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.2949, allocations: 0.8846 MB / 445.1 MB, free: 5.652 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.2949, allocations: 4 kB / 445.1 MB, free: 5.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02331/0.3182, allocations: 5.648 MB / 450.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.093e-05/0.3184, allocations: 71.39 kB / 450.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/0.3184, allocations: 7.953 kB / 450.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03611/0.3545, allocations: 7.316 MB / 458.1 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007292/0.3553, allocations: 183.7 kB / 458.3 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006784/0.3621, allocations: 3.211 MB / 461.5 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.3638, allocations: 231.8 kB / 461.7 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.364, allocations: 47.97 kB / 461.8 MB, free: 4.82 MB / 330.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.0004547/0.3644, allocations: 225.7 kB / 462 MB, free: 4.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.3646, allocations: 75.06 kB / 462.1 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02323/0.3878, allocations: 5.47 MB / 467.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/0.3879, allocations: 12 kB / 467.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.3879, allocations: 0 / 467.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.308e-05/0.388, allocations: 3.984 kB / 467.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.3897, allocations: 1.12 MB / 468.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.3898, allocations: 4 kB / 468.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005592/0.3903, allocations: 123.9 kB / 468.8 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03568/0.426, allocations: 7.285 MB / 476.1 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002541/0.4263, allocations: 19.98 kB / 476.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005944/0.4323, allocations: 3.08 MB / 479.2 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4323, allocations: 0 / 479.2 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02602/0.4584, allocations: 6.424 MB / 485.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002481/0.4587, allocations: 144.2 kB / 485.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000254/0.4589, allocations: 16 kB / 485.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.4605, allocations: 211.8 kB / 486 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002778/0.4608, allocations: 108.8 kB / 486.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.4609, allocations: 31.97 kB / 486.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004422/0.4614, allocations: 350.8 kB / 486.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4614, allocations: 0 / 486.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008849/0.4623, allocations: 268 kB / 486.7 MB, free: 11.68 MB / 362.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.000326/0.4626, allocations: 136 kB / 486.9 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007294/0.4699, allocations: 2.329 MB / 489.2 MB, free: 9.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.47, allocations: 448 / 489.2 MB, free: 9.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003738/0.4737, allocations: 1.167 MB / 490.3 MB, free: 8.016 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009369/0.4747, allocations: 124.5 kB / 490.5 MB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004574/0.4793, allocations: 2.137 MB / 492.6 MB, free: 5.738 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006116/0.4799, allocations: 0.9506 MB / 493.6 MB, free: 4.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.4802, allocations: 31.44 kB / 493.6 MB, free: 4.727 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/0.4802, allocations: 0 / 493.6 MB, free: 4.727 MB / 362.7 MB Notification: Performance of Templates: time 0.02647/0.5067, allocations: 17.34 MB / 0.499 GB, free: 3.41 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches