Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CauerLowPassSC,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00234/0.002346, allocations: 181.3 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.151/2.151, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001132, allocations: 88.38 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.963e-05/3.963e-05, allocations: 7.984 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3655, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.499, allocations: 80.67 MB / 443.1 MB, free: 5.535 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.4994, allocations: 67.95 kB / 443.2 MB, free: 5.469 MB / 331.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/Analog/Examples/Utilities/SwitchedCapacitor.mo:41:3-41:79:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.1757/0.6751, allocations: 40.18 MB / 483.3 MB, free: 13.23 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6752, allocations: 0 / 483.3 MB, free: 13.23 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0001572/0.6754, allocations: 65.11 kB / 483.4 MB, free: 13.17 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.009504/0.6849, allocations: 2.534 MB / 485.9 MB, free: 10.56 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.685, allocations: 12.03 kB / 486 MB, free: 10.55 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/0.6862, allocations: 284.5 kB / 486.2 MB, free: 10.27 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002945/0.6892, allocations: 1.036 MB / 487.3 MB, free: 9.191 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.6893, allocations: 84 kB / 487.4 MB, free: 9.109 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005817/0.6899, allocations: 163.9 kB / 487.5 MB, free: 8.949 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005886/0.6958, allocations: 1.709 MB / 489.2 MB, free: 7.234 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006903/0.7028, allocations: 2.19 MB / 491.4 MB, free: 4.91 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.376e-05/0.7029, allocations: 4 kB / 491.4 MB, free: 4.906 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002831/0.7032, allocations: 11.98 kB / 491.4 MB, free: 4.895 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.009e-05/0.7033, allocations: 68 kB / 491.5 MB, free: 4.828 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02459/0.7279, allocations: 9.227 MB / 0.489 GB, free: 11.4 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.738, allocations: 2.705 MB / 0.4916 GB, free: 8.691 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002514/0.7405, allocations: 0.9937 MB / 0.4926 GB, free: 7.699 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001692/0.7407, allocations: 22 kB / 0.4926 GB, free: 7.676 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002313/0.743, allocations: 0.8707 MB / 0.4935 GB, free: 6.793 MB / 395.1 MB Notification: Performance of pre-optimization done (n=218): time 5.089e-06/0.7431, allocations: 0 / 0.4935 GB, free: 6.793 MB / 395.1 MB Notification: Performance of matching and sorting (n=218): time 0.00782/0.7509, allocations: 2.3 MB / 0.4957 GB, free: 4.445 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.751, allocations: 93.34 kB / 0.4958 GB, free: 4.344 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.753, allocations: 0.8436 MB / 0.4966 GB, free: 3.488 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003816/0.7534, allocations: 33.7 kB / 0.4967 GB, free: 3.449 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001048/0.7544, allocations: 0.9423 MB / 0.4976 GB, free: 2.496 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/0.7555, allocations: 0.6582 MB / 0.4982 GB, free: 1.828 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.7557, allocations: 0 / 0.4982 GB, free: 1.828 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002621/0.7559, allocations: 407.9 kB / 0.4986 GB, free: 1.422 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001838/0.7578, allocations: 0.6221 MB / 0.4992 GB, free: 0.7969 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2777/1.035, allocations: 1.164 MB / 0.5004 GB, free: 100.8 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00248/1.038, allocations: 0.7057 MB / 0.501 GB, free: 100.8 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-05/1.038, allocations: 4.25 kB / 0.5011 GB, free: 100.8 MB / 395.1 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.009335/1.047, allocations: 2.653 MB / 0.5036 GB, free: 100.6 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.341e-05/1.048, allocations: 15.45 kB / 0.5037 GB, free: 100.6 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-05/1.048, allocations: 16.81 kB / 0.5037 GB, free: 100.6 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005775/1.053, allocations: 1.105 MB / 0.5048 GB, free: 100.5 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/1.055, allocations: 290.8 kB / 0.505 GB, free: 100.5 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03025/1.086, allocations: 21.47 MB / 0.526 GB, free: 85.97 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003245/1.089, allocations: 275.4 kB / 0.5263 GB, free: 85.91 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006286/1.09, allocations: 91.69 kB / 0.5263 GB, free: 85.91 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 66 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.R4.BooleanPulse.pulseStart,R4.BooleanPulse.pulseStart,R4.IdealCommutingSwitch1.control,R4.logicalSwitch.u1,$PRE.R5.BooleanPulse.pulseStart,R5.BooleanPulse.pulseStart,R5.IdealCommutingSwitch1.control,R5.logicalSwitch.u1,$PRE.R8.BooleanPulse.pulseStart,R8.BooleanPulse.pulseStart,R8.IdealCommutingSwitch1.control,R8.logicalSwitch.u1,$PRE.R9.BooleanPulse.pulseStart,R9.BooleanPulse.pulseStart,R9.IdealCommutingSwitch1.control,R9.logicalSwitch.u1,$PRE.R1.BooleanPulse.pulseStart,R1.BooleanPulse.pulseStart,R1.IdealCommutingSwitch1.control,R1.logicalSwitch.u1,$PRE.R2.BooleanPulse.pulseStart,R2.BooleanPulse.pulseStart,R2.IdealCommutingSwitch1.control,R2.logicalSwitch.u1,$PRE.R3.BooleanPulse.pulseStart,R3.BooleanPulse.pulseStart,R3.IdealCommutingSwitch1.control,R3.logicalSwitch.u1,$PRE.Rp1.BooleanPulse.pulseStart,Rp1.BooleanPulse.pulseStart,Rp1.IdealCommutingSwitch1.control,Rp1.logicalSwitch.u1,$PRE.R7.BooleanPulse.pulseStart,R7.BooleanPulse.pulseStart,R7.IdealCommutingSwitch1.control,R7.logicalSwitch.u1,$PRE.R10.BooleanPulse.pulseStart,R10.BooleanPulse.pulseStart,R10.IdealCommutingSwitch1.control,R10.logicalSwitch.u1,$PRE.R11.BooleanPulse.pulseStart,R11.BooleanPulse.pulseStart,R11.IdealCommutingSwitch1.control,R11.logicalSwitch.u1,R11.lessEqualThreshold.y,R10.lessEqualThreshold.y,R7.lessEqualThreshold.y,Rp1.lessEqualThreshold.y,R3.lessEqualThreshold.y,R2.lessEqualThreshold.y,R1.lessEqualThreshold.y,R9.lessEqualThreshold.y,R8.lessEqualThreshold.y,R5.lessEqualThreshold.y,R4.lessEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 187 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(1,100.0%) 9,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006118/1.09, allocations: 191.4 kB / 0.5265 GB, free: 85.77 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007947/1.098, allocations: 2.305 MB / 0.5288 GB, free: 84.92 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008091/1.099, allocations: 171.8 kB / 0.5289 GB, free: 84.83 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005895/1.1, allocations: 190.9 kB / 0.5291 GB, free: 84.68 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.252e-05/1.1, allocations: 24.05 kB / 0.5291 GB, free: 84.68 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-05/1.1, allocations: 22.41 kB / 0.5292 GB, free: 84.68 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.211e-05/1.1, allocations: 7.594 kB / 0.5292 GB, free: 84.68 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003821/1.104, allocations: 1.78 MB / 0.5309 GB, free: 83.88 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.536e-05/1.104, allocations: 0 / 0.5309 GB, free: 83.88 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/1.105, allocations: 139.3 kB / 0.531 GB, free: 83.87 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005282/1.111, allocations: 1.091 MB / 0.5321 GB, free: 83.43 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004075/1.111, allocations: 14.33 kB / 0.5321 GB, free: 83.42 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0272/1.138, allocations: 21.44 MB / 0.5531 GB, free: 65.24 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/1.138, allocations: 2.406 kB / 0.5531 GB, free: 65.24 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/1.149, allocations: 3.361 MB / 0.5564 GB, free: 63.64 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/1.15, allocations: 455.9 kB / 0.5568 GB, free: 63.35 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004747/1.151, allocations: 6.469 kB / 0.5568 GB, free: 63.35 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.153, allocations: 98.77 kB / 0.5569 GB, free: 63.34 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001148/1.154, allocations: 271 kB / 0.5571 GB, free: 63.28 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002204/1.154, allocations: 59.25 kB / 0.5572 GB, free: 63.27 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001093/1.155, allocations: 0.5683 MB / 0.5578 GB, free: 62.99 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.156, allocations: 0 / 0.5578 GB, free: 62.99 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00427/1.16, allocations: 0.7015 MB / 0.5584 GB, free: 62.94 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 16 (C1.v,C2.v,C3.v,C4.v,C7.v,R4.Capacitor.v,R5.Capacitor.v,R8.Capacitor.v,R9.Capacitor.v,R1.Capacitor.v,R2.Capacitor.v,R3.Capacitor.v,Rp1.Capacitor.v,R7.Capacitor.v,R10.Capacitor.v,R11.Capacitor.v) * Number of discrete variables: 44 ($whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,R4.BooleanPulse.pulseStart,R4.IdealCommutingSwitch1.control,R4.logicalSwitch.u1,R5.BooleanPulse.pulseStart,R5.IdealCommutingSwitch1.control,R5.logicalSwitch.u1,R8.BooleanPulse.pulseStart,R8.IdealCommutingSwitch1.control,R8.logicalSwitch.u1,R9.BooleanPulse.pulseStart,R9.IdealCommutingSwitch1.control,R9.logicalSwitch.u1,R1.BooleanPulse.pulseStart,R1.IdealCommutingSwitch1.control,R1.logicalSwitch.u1,R2.BooleanPulse.pulseStart,R2.IdealCommutingSwitch1.control,R2.logicalSwitch.u1,R3.BooleanPulse.pulseStart,R3.IdealCommutingSwitch1.control,R3.logicalSwitch.u1,Rp1.BooleanPulse.pulseStart,Rp1.IdealCommutingSwitch1.control,Rp1.logicalSwitch.u1,R7.BooleanPulse.pulseStart,R7.IdealCommutingSwitch1.control,R7.logicalSwitch.u1,R10.BooleanPulse.pulseStart,R10.IdealCommutingSwitch1.control,R10.logicalSwitch.u1,R11.BooleanPulse.pulseStart,R11.IdealCommutingSwitch1.control,R11.logicalSwitch.u1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(1,100.0%) 9,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7,(4,62.5%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01066/1.17, allocations: 3.97 MB / 0.5623 GB, free: 60.79 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.008806/1.179, allocations: 3.695 MB / 0.5659 GB, free: 58.46 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/1.179, allocations: 4.5 kB / 0.5659 GB, free: 58.46 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006245/1.186, allocations: 2.819 MB / 0.5687 GB, free: 56.48 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/1.188, allocations: 262.4 kB / 0.5689 GB, free: 56.41 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01268/1.201, allocations: 4.113 MB / 0.573 GB, free: 54.41 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001492/1.203, allocations: 1.587 MB / 0.5745 GB, free: 53.29 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/1.204, allocations: 0.7809 MB / 0.5753 GB, free: 52.57 MB / 395.1 MB Notification: Performance of SimCode: time 1.493e-06/1.204, allocations: 0 / 0.5753 GB, free: 52.57 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.617/5.821, allocations: 135.5 MB / 0.7076 GB, free: 109.9 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CauerLowPassSC.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat does not exist to compare? outputFormat=mat