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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 101.5 kB / 16.96 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 179.4 kB / 17.84 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.4 MB / 224 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004765, allocations: 19.98 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1044, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005239/0.1097, allocations: 4.948 MB / 333.4 MB, free: 15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.1122, allocations: 1.395 MB / 334.8 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006338/0.1129, allocations: 15.94 kB / 334.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004228/0.1134, allocations: 119.1 kB / 334.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007217/0.1141, allocations: 238 kB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007258/0.1148, allocations: 223.7 kB / 335.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.1162, allocations: 1.124 MB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000575/0.1168, allocations: 300.2 kB / 336.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000669/0.1175, allocations: 370.7 kB / 337.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006876/0.1182, allocations: 450.1 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002094/0.1184, allocations: 56 kB / 337.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003373/0.1188, allocations: 83.97 kB / 337.7 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.119, allocations: 167.3 kB / 337.9 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003172/0.1193, allocations: 209.2 kB / 338.1 MB, free: 10.26 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.1204, allocations: 1.056 MB / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1204, allocations: 0 / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1204, allocations: 0 / 339.2 MB, free: 9.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.206e-05/0.1205, allocations: 4 kB / 339.2 MB, free: 9.195 MB / 286.1 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.002566/0.1231, allocations: 1.146 MB / 340.3 MB, free: 8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.1231, allocations: 16.03 kB / 340.3 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002775/0.1234, allocations: 127 kB / 340.4 MB, free: 7.852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.1237, allocations: 98.88 kB / 340.5 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007389/0.1244, allocations: 0.4885 MB / 341 MB, free: 7.227 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.272e-05/0.1245, allocations: 62 kB / 341.1 MB, free: 7.164 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.1246, allocations: 83.98 kB / 341.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.1263, allocations: 0.8844 MB / 342.1 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.1263, allocations: 7.922 kB / 342.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.563e-05/0.1264, allocations: 35.94 kB / 342.1 MB, free: 6.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.1264, allocations: 20 kB / 342.1 MB, free: 6.121 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.128, allocations: 0.8004 MB / 342.9 MB, free: 5.32 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004896/0.1329, allocations: 3.099 MB / 346 MB, free: 2.098 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.134, allocations: 0.6578 MB / 346.7 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006685/0.1347, allocations: 426.3 kB / 347.1 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.527e-05/0.1348, allocations: 8.562 kB / 347.1 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.1348, allocations: 43.12 kB / 347.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 2.665e-06/0.1348, allocations: 0 / 347.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004494/0.1393, allocations: 2.252 MB / 349.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.1394, allocations: 60.06 kB / 349.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006307/0.14, allocations: 0.4989 MB / 350 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.887e-05/0.1401, allocations: 49.64 kB / 350 MB, free: 14.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003691/0.1404, allocations: 387.5 kB / 350.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/0.1407, allocations: 252.2 kB / 350.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.1407, allocations: 16 kB / 350.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.1409, allocations: 374.8 kB / 351 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006524/0.1416, allocations: 317.9 kB / 351.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006943/0.1423, allocations: 437.1 kB / 351.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006842/0.143, allocations: 366.9 kB / 352.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.143, allocations: 4 kB / 352.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001949/0.1449, allocations: 1.056 MB / 353.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.145, allocations: 11.95 kB / 353.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.145, allocations: 4 kB / 353.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005774/0.1456, allocations: 180.7 kB / 353.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007753/0.1464, allocations: 187.8 kB / 353.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003739/0.1501, allocations: 2.614 MB / 356.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005271/0.1507, allocations: 40.03 kB / 356.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-05/0.1507, allocations: 28 kB / 356.2 MB, free: 7.602 MB / 302.1 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 () * Number of clocked 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.0003776/0.1511, allocations: 233.7 kB / 356.5 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.1513, allocations: 71.16 kB / 356.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.1514, allocations: 82.19 kB / 356.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.1515, allocations: 11.98 kB / 356.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/0.1515, allocations: 0 / 356.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.1515, allocations: 0 / 356.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.1528, allocations: 0.8417 MB / 357.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.1528, allocations: 3.938 kB / 357.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007012/0.1535, allocations: 155.8 kB / 357.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005177/0.154, allocations: 173.4 kB / 357.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.29e-05/0.1541, allocations: 23.98 kB / 357.8 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003394/0.1575, allocations: 2.607 MB / 360.4 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.1575, allocations: 3.953 kB / 360.4 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002429/0.16, allocations: 1.416 MB / 361.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.1602, allocations: 136.3 kB / 362 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.1603, allocations: 16.19 kB / 362 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.1608, allocations: 63.95 kB / 362 MB, free: 1.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.1609, allocations: 56.55 kB / 362.1 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.604e-05/0.161, allocations: 27.98 kB / 362.1 MB, free: 1.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004384/0.1614, allocations: 350.8 kB / 362.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1615, allocations: 0 / 362.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008248/0.1623, allocations: 224 kB / 362.7 MB, free: 0.9023 MB / 302.1 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 () * Number of clocked 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.002763/0.1651, allocations: 1.992 MB / 364.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.1671, allocations: 1.018 MB / 365.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.1672, allocations: 0.6875 kB / 365.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.1684, allocations: 0.6429 MB / 366.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007657/0.1692, allocations: 130.4 kB / 366.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008174/0.1774, allocations: 5.217 MB / 371.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006089/0.178, allocations: 0.9577 MB / 372.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004109/0.1784, allocations: 81.05 kB / 372.7 MB, free: 6.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004679/0.1789, allocations: 295.3 kB / 373 MB, free: 6.391 MB / 318.1 MB Notification: Performance of SimCode: time 1.693e-06/0.1789, allocations: 0 / 373 MB, free: 6.391 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1912/0.3701, allocations: 15.85 MB / 388.9 MB, free: 49.84 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002411/0.3704, allocations: 212.3 kB / 389.1 MB, free: 49.6 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.256/2.626, allocations: 1.75 kB / 389.1 MB, free: 49.6 MB / 318.1 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) Environment - environmentSimulation: