Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009867/0.0009867, allocations: 86.47 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.099e-05/2.094e-05, allocations: 4 kB / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1033, allocations: 51.47 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3096/0.413, allocations: 79.7 MB / 475 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001772/0.4132, allocations: 72.31 kB / 475 MB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01044/0.4236, allocations: 4.139 MB / 479.2 MB, free: 9.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4236, allocations: 0 / 479.2 MB, free: 9.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.4237, allocations: 4 kB / 479.2 MB, free: 9.754 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000518/0.4242, allocations: 495.8 kB / 479.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.4242, allocations: 12.03 kB / 479.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.4244, allocations: 39.7 kB / 479.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.4246, allocations: 230.1 kB / 479.9 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.4246, allocations: 15.3 kB / 479.9 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.4247, allocations: 12 kB / 480 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002219/0.4249, allocations: 126.1 kB / 480.1 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.4251, allocations: 149.6 kB / 480.2 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4251, allocations: 0 / 480.2 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/0.4252, allocations: 4 kB / 480.2 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.4252, allocations: 7.984 kB / 480.2 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.4262, allocations: 0.8085 MB / 481 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.4264, allocations: 142.8 kB / 481.2 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.4266, allocations: 89.66 kB / 481.3 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.4266, allocations: 0 / 481.3 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.507e-05/0.4266, allocations: 34.56 kB / 481.3 MB, free: 7.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.012e-06/0.4266, allocations: 0 / 481.3 MB, free: 7.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.000515/0.4271, allocations: 199.1 kB / 481.5 MB, free: 7.586 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.971e-05/0.4272, allocations: 59.41 kB / 481.6 MB, free: 7.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.789e-05/0.4273, allocations: 148.6 kB / 481.7 MB, free: 7.383 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.4273, allocations: 25.7 kB / 481.7 MB, free: 7.352 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.026e-05/0.4274, allocations: 145.7 kB / 481.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.4274, allocations: 61.16 kB / 481.9 MB, free: 7.168 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.757e-06/0.4274, allocations: 0 / 481.9 MB, free: 7.168 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.4275, allocations: 325.6 kB / 482.3 MB, free: 6.848 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.394e-05/0.4275, allocations: 40.12 kB / 482.3 MB, free: 6.824 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.198e-05/0.4276, allocations: 65.83 kB / 482.4 MB, free: 6.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.4278, allocations: 64.3 kB / 482.4 MB, free: 6.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4278, allocations: 0 / 482.4 MB, free: 6.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003827/0.4282, allocations: 212.9 kB / 482.6 MB, free: 6.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.4282, allocations: 5.406 kB / 482.6 MB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.4282, allocations: 4.031 kB / 482.6 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000503/0.4287, allocations: 100.3 kB / 482.7 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.4289, allocations: 27.98 kB / 482.8 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004015/0.4293, allocations: 0.6339 MB / 483.4 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001167/0.4294, allocations: 15.86 kB / 483.4 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.4294, allocations: 8 kB / 483.4 MB, free: 5.793 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 6.158e-05/0.4295, allocations: 104.9 kB / 483.5 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004334/0.4299, allocations: 205.9 kB / 483.7 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.564e-05/0.43, allocations: 15.81 kB / 483.7 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003882/0.4304, allocations: 217.5 kB / 483.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4304, allocations: 0 / 483.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4304, allocations: 0 / 483.9 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4304, allocations: 8 kB / 484 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006562/0.4311, allocations: 0.5339 MB / 484.5 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.4311, allocations: 4 kB / 484.5 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.4312, allocations: 27.17 kB / 484.5 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003972/0.4316, allocations: 104.3 kB / 484.6 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.4317, allocations: 0 / 484.6 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003699/0.432, allocations: 0.6427 MB / 485.3 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4321, allocations: 3.312 kB / 485.3 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004768/0.4325, allocations: 388.5 kB / 485.6 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.494e-05/0.4326, allocations: 97 kB / 485.7 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.4326, allocations: 8 kB / 485.8 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.4328, allocations: 7.906 kB / 485.8 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.4328, allocations: 15.36 kB / 485.8 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.4328, allocations: 4 kB / 485.8 MB, free: 3.605 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.077e-05/0.4329, allocations: 125.8 kB / 485.9 MB, free: 3.496 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4329, allocations: 0 / 485.9 MB, free: 3.496 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002849/0.4332, allocations: 55.78 kB / 486 MB, free: 3.441 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007066/0.4339, allocations: 0.9934 MB / 486.9 MB, free: 2.484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002572/0.4342, allocations: 135.5 kB / 487.1 MB, free: 2.391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.4342, allocations: 0 / 487.1 MB, free: 2.391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001279/0.4343, allocations: 65.83 kB / 487.1 MB, free: 2.344 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.4346, allocations: 27.12 kB / 487.2 MB, free: 2.328 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007462/0.4353, allocations: 430.5 kB / 487.6 MB, free: 1.902 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001365/0.4355, allocations: 0.7477 MB / 488.3 MB, free: 1.129 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.041e-05/0.4355, allocations: 5.219 kB / 488.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.4356, allocations: 62.03 kB / 488.4 MB, free: 1.102 MB / 346.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4356, allocations: 4 kB / 488.4 MB, free: 1.098 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.4558, allocations: 3.646 MB / 492.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/0.456, allocations: 146.6 kB / 492.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.112, allocations: 0 / 492.2 MB, free: 13.34 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat