Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier",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.001353/0.001353, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.000797/0.000797, allocations: 78.72 kB / 267.9 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.401e-05/2.414e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07881/0.07885, allocations: 47.58 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2834/0.3623, allocations: 80.06 MB / 450.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.3625, allocations: 72.16 kB / 450.2 MB, free: 13.19 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03781/0.4003, allocations: 14.32 MB / 464.6 MB, free: 288 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4004, allocations: 0 / 464.6 MB, free: 288 kB / 330.7 MB Notification: Performance of Transformations before backend: time 3.402e-05/0.4004, allocations: 20 kB / 464.6 MB, free: 268 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.00188/0.4023, allocations: 1.057 MB / 465.6 MB, free: 15.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.4023, allocations: 12.03 kB / 465.7 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/0.4025, allocations: 131 kB / 465.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.4026, allocations: 106.7 kB / 465.9 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005986/0.4032, allocations: 492.4 kB / 466.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.4033, allocations: 58 kB / 466.4 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.4034, allocations: 80 kB / 466.5 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.4048, allocations: 0.8221 MB / 467.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.4048, allocations: 4 kB / 467.3 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.501e-05/0.4049, allocations: 40 kB / 467.4 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.4049, allocations: 19.98 kB / 467.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.406, allocations: 0.7107 MB / 468.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004537/0.4106, allocations: 3.104 MB / 471.2 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008707/0.4115, allocations: 0.6128 MB / 471.8 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/0.412, allocations: 378.5 kB / 472.2 MB, free: 8.414 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.255e-05/0.4121, allocations: 16.55 kB / 472.2 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.4121, allocations: 43.06 kB / 472.2 MB, free: 8.348 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 2.865e-06/0.4121, allocations: 0 / 472.2 MB, free: 8.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.003035/0.4151, allocations: 1.806 MB / 474.1 MB, free: 6.484 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.4152, allocations: 60.19 kB / 474.1 MB, free: 6.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004532/0.4157, allocations: 440.9 kB / 474.5 MB, free: 5.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.4157, allocations: 45.7 kB / 474.6 MB, free: 5.922 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.4159, allocations: 391.5 kB / 475 MB, free: 5.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.4161, allocations: 248.4 kB / 475.2 MB, free: 5.285 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.024e-05/0.4162, allocations: 19.94 kB / 475.2 MB, free: 5.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4163, allocations: 378.7 kB / 475.6 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004269/0.4168, allocations: 270 kB / 475.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.4173, allocations: 393 kB / 476.2 MB, free: 4.203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004921/0.4178, allocations: 318.1 kB / 476.6 MB, free: 3.895 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4178, allocations: 4 kB / 476.6 MB, free: 3.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001595/0.4194, allocations: 0.9648 MB / 477.5 MB, free: 2.914 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.4194, allocations: 4 kB / 477.5 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.4194, allocations: 4 kB / 477.5 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005191/0.4199, allocations: 181.9 kB / 477.7 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008107/0.4208, allocations: 199.8 kB / 477.9 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/0.424, allocations: 2.591 MB / 480.5 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005481/0.4246, allocations: 43.97 kB / 480.5 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-05/0.4247, allocations: 39.88 kB / 480.6 MB, free: 15.72 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001567/0.4248, allocations: 144.8 kB / 480.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.4249, allocations: 71.16 kB / 480.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.4251, allocations: 86.17 kB / 480.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.4252, allocations: 8 kB / 480.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.4252, allocations: 0 / 480.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.4252, allocations: 7.984 kB / 480.9 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000954/0.4261, allocations: 0.834 MB / 481.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.4261, allocations: 0 / 481.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006914/0.4268, allocations: 155.8 kB / 481.9 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004818/0.4273, allocations: 176.6 kB / 482 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-05/0.4274, allocations: 23.98 kB / 482.1 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004659/0.4321, allocations: 2.609 MB / 484.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4321, allocations: 0 / 484.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003141/0.4352, allocations: 1.28 MB / 486 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/0.4355, allocations: 136.2 kB / 486.1 MB, free: 9.969 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001572/0.4356, allocations: 20 kB / 486.1 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009268/0.4366, allocations: 64 kB / 486.2 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.4367, allocations: 56.64 kB / 486.2 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-05/0.4368, allocations: 23.98 kB / 486.3 MB, free: 9.809 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005988/0.4374, allocations: 349.6 kB / 486.6 MB, free: 9.469 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4375, allocations: 0 / 486.6 MB, free: 9.469 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001183/0.4386, allocations: 228.1 kB / 486.8 MB, free: 9.246 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00422/0.4429, allocations: 1.883 MB / 488.7 MB, free: 7.332 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00316/0.4461, allocations: 0.9207 MB / 489.6 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.4461, allocations: 384 / 489.6 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002112/0.4482, allocations: 0.5972 MB / 490.2 MB, free: 5.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.4492, allocations: 127.6 kB / 490.3 MB, free: 5.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005119/0.4544, allocations: 1.735 MB / 492.1 MB, free: 3.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008203/0.4552, allocations: 0.9736 MB / 493.1 MB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007159/0.456, allocations: 77.06 kB / 493.1 MB, free: 2.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006981/0.4567, allocations: 291.3 kB / 493.4 MB, free: 2.535 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4567, allocations: 3.938 kB / 493.4 MB, free: 2.531 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03844/0.4952, allocations: 15.74 MB / 0.4972 GB, free: 2.762 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.4954, allocations: 173.6 kB / 0.4974 GB, free: 2.543 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.219/2.714, allocations: 0 / 0.4974 GB, free: 2.543 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_DifferenceAmplifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)