Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.08482, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3585/0.4433, allocations: 71.59 MB / 343.7 MB, free: 1.332 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.4437, allocations: 74.41 kB / 343.8 MB, free: 1.293 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08062/0.5244, allocations: 14 MB / 357.8 MB, free: 5.059 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.5244, allocations: 0 / 357.8 MB, free: 5.059 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.87e-05/0.5245, allocations: 16 kB / 357.8 MB, free: 5.043 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00708/0.5316, allocations: 1.418 MB / 359.2 MB, free: 3.613 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.5317, allocations: 16.03 kB / 359.2 MB, free: 3.598 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003965/0.5321, allocations: 99.77 kB / 359.3 MB, free: 3.527 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.5324, allocations: 86.97 kB / 359.4 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002317/0.5347, allocations: 0.5902 MB / 360 MB, free: 2.891 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.951e-05/0.5349, allocations: 46.88 kB / 360.1 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/0.5351, allocations: 61.12 kB / 360.1 MB, free: 2.824 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003844/0.539, allocations: 0.8609 MB / 361 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/0.5391, allocations: 0 / 361 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.5392, allocations: 24.92 kB / 361 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.5392, allocations: 16 kB / 361 MB, free: 2.148 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005694/0.5449, allocations: 1.102 MB / 362.1 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007668/0.5527, allocations: 2.357 MB / 364.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004268/0.557, allocations: 0.8714 MB / 365.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.554e-05/0.5571, allocations: 8.422 kB / 365.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002856/0.56, allocations: 0.6296 MB / 366 MB, free: 14.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 4.028e-06/0.56, allocations: 0 / 366 MB, free: 14.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.1227/0.6827, allocations: 15.41 MB / 381.4 MB, free: 396 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/0.6829, allocations: 141.3 kB / 381.5 MB, free: 228 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00093/0.6838, allocations: 449.8 kB / 382 MB, free: 15.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003193/0.6842, allocations: 50.88 kB / 382 MB, free: 15.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003606/0.6846, allocations: 381.8 kB / 382.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005381/0.6851, allocations: 319.4 kB / 382.7 MB, free: 15.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.6853, allocations: 23.31 kB / 382.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002387/0.6855, allocations: 388.5 kB / 383.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005243/0.6908, allocations: 1.008 MB / 384.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005408/0.6963, allocations: 1.217 MB / 385.3 MB, free: 13.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005227/0.7015, allocations: 1.087 MB / 386.4 MB, free: 12.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.7016, allocations: 4 kB / 386.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.06127/0.7629, allocations: 7.396 MB / 393.8 MB, free: 5.102 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.943e-05/0.7631, allocations: 67.53 kB / 393.9 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.7631, allocations: 8 kB / 393.9 MB, free: 5.016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06218/0.8253, allocations: 6.731 MB / 400.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.8267, allocations: 179.8 kB / 400.8 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01458/0.8413, allocations: 3.731 MB / 404.5 MB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003847/0.8452, allocations: 299.7 kB / 404.8 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002751/0.8455, allocations: 43.98 kB / 404.9 MB, free: 9.973 MB / 330.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 () * 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.0007116/0.8463, allocations: 221.7 kB / 405.1 MB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003002/0.8466, allocations: 83.05 kB / 405.2 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04886/0.8954, allocations: 5.95 MB / 411.1 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.528e-05/0.8955, allocations: 8 kB / 411.1 MB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.8955, allocations: 0 / 411.1 MB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.042e-05/0.8956, allocations: 3.984 kB / 411.1 MB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002715/0.8983, allocations: 1.26 MB / 412.4 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.8984, allocations: 0 / 412.4 MB, free: 2.367 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.8995, allocations: 127.8 kB / 412.5 MB, free: 2.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06376/0.9633, allocations: 6.684 MB / 419.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003185/0.9637, allocations: 28.19 kB / 419.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05869/1.022, allocations: 10.87 MB / 430.1 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.022, allocations: 7.922 kB / 430.1 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2739/1.296, allocations: 7.131 MB / 437.2 MB, free: 111.4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002758/1.297, allocations: 141.9 kB / 437.4 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003897/1.297, allocations: 22.77 kB / 437.4 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003497/1.301, allocations: 285.1 kB / 437.7 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007332/1.301, allocations: 145 kB / 437.8 MB, free: 111.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001762/1.302, allocations: 30.83 kB / 437.8 MB, free: 111.3 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006227/1.302, allocations: 344.4 kB / 438.2 MB, free: 111.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.302, allocations: 0 / 438.2 MB, free: 111.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001642/1.304, allocations: 331.3 kB / 438.5 MB, free: 111.2 MB / 346.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.05265/1.357, allocations: 7.726 MB / 446.2 MB, free: 110.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01642/1.373, allocations: 2.603 MB / 448.8 MB, free: 110.1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/1.373, allocations: 4.062 kB / 448.8 MB, free: 110.1 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.014/1.387, allocations: 1.764 MB / 450.6 MB, free: 109.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/1.389, allocations: 116.1 kB / 450.7 MB, free: 109.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0953/1.484, allocations: 16.67 MB / 467.4 MB, free: 96.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/1.484, allocations: 0.9732 MB / 468.4 MB, free: 95.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000558/1.485, allocations: 56.53 kB / 468.4 MB, free: 95.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005158/1.485, allocations: 271.3 kB / 468.7 MB, free: 95.62 MB / 346.7 MB Notification: Performance of SimCode: time 1.674e-06/1.485, allocations: 0 / 468.7 MB, free: 95.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08773/1.573, allocations: 34.62 MB / 0.4915 GB, free: 61.1 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/1.573, allocations: 208.9 kB / 0.4917 GB, free: 60.86 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.395/5.969, allocations: 0 / 0.4917 GB, free: 60.86 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat